Regular Expressions 101

Community Patterns

Find negative currency numbers in parenthesis

1

Regular Expression
PCRE (PHP <7.3)

/
\((\$[\d,\.]*)\)
/

Description

I used this for N++ find/replace. Find this value and replace with -$1

Submitted by anonymous - 9 years ago