Regular Expressions 101

Community Patterns

find number with comma and string

0

Regular Expression
PCRE2 (PHP >=7.3)

/
(?:\d+(\d{1,3})*([\,\ ]\d{3})*\.\d+)?.+(sqft)
/
gm

Description

find a number with a comma and continue with a string ex. 1,000 AED

Submitted by anonymous - a year ago