Is there a regular expresion that will match ALL currency symbols (not just $) as they appear in HTML? I am trying to extract all occurrences of money amounts from an html page. Thanks!
$ means "Match the end of the string" (the position after the last character in the string).
6 Answers. Show activity on this post. [] denotes a character class. () denotes a capturing group.
To match a character having special meaning in regex, you need to use a escape sequence prefix with a backslash ( \ ). E.g., \. matches "." ; regex \+ matches "+" ; and regex \( matches "(" .
The character + in a regular expression means "match the preceding character one or more times". For example A+ matches one or more of character A. The plus character, used in a regular expression, is called a Kleene plus .
\p{Sc}
seems to be the magic incantation you are looking for.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With