Regular Expressions 101

Community Patterns

1...45678...902

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

/
(^|\b)([5,9]\d{2,}|\d{4,})(\.\d+)? (dollar|\$)(\b|\n)
/
gm

Description

it's brute force and messy, share a comment to simply remove redundancy

Submitted by anonymous - 3 years ago