2 Réponses
+ 2
I will try to answer by adding some cases.
r"\lt;\d+>[/*]?" matchs:
lt;
continuous with one and more digit
then, >
zero or one / or *
Example:
lt;1>
lt;2>/
lt;007>*
r"\$\$|\${\w+}" matchs:
1st Alternative \$\$:
$
2nd Alternative \${\w+}:
${
[a-zA-Z0-9_] one or more times
}
Example:
$
${iOS_11}
You might also want to check out this online regex tester, https://regex101.com
Hope this helps.
+ 1
Esch
Thank you very much. It makes much more sense now.