Community Patterns

Community Library Entry

1

Regular Expression
Created·2021-09-04 04:26
Flavor·PCRE2 (PHP)

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

Description

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

Submitted by anonymous