Pattern: Currency symbol
“Currency symbol” is one of the patterns that you can select on the Match panel. Use this pattern to make a field match a currency symbol from any of the currency symbols defined in Unicode, including currency symbols not available on your keyboard. You can restrict the pattern to specific currencies.
This example shows how you can use the “Currency symbols” pattern to match a currency symbol. You can find this example as “Pattern: Currency symbols” in the RegexMagic library.
- Click the New Formula button on the top toolbar to clear out all settings on the Samples, Match, and Action panels.
- On the Samples panel, paste in one new sample:
Some of the world's major currency symbols are $, €, ¥, and £.
- On the Match panel, set both “begin regex match at” and “end regex match at” to “anywhere”.
- Click the
button to add field
.
- In the “pattern to match field” drop-down list, select “Currency symbols”.

- In the “Currency symbols” list, tick € euro, £ pound, and ¥ yen.
- On the Regex panel, select “JavaScript (Chrome, Edge, Firefox)” as your application, turn off free-spacing, and turn off mode modifiers. Click the Generate button, and you’ll get this regular expression which matches a single character that is considered to be a currency symbol by the Unicode standard:
[£¥€]
Unused options: Case sensitive; Exact spacing; Dot doesn’t match line breaks; ^$ don’t match at line breaks.
- The Samples panel now shows the regular expression finds 4 different matches in our sample text:
Some of the world's major currency symbols are $, €, ¥, and £.
Related Examples
Reference