Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

/
\b\d{1,3}(?:,\d{2,3})*(?:,\d{3})*(?:\.\d+)?\b
/

Description

problem satatement is to get all the amount despite of inconsistencies in comma or dollar sign also I need to exclude year from that (if no pattern can be made asssume to get all the amount greater than 3000)

Submitted by Alpha - 7 months ago