Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
(\d)(?=(\d{3})+)
/
g

Description

Format money i.e: 600 6,000 60,000 600,000

etc

Submitted by Jamie Robertson - 9 years ago