Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Created·2015-11-30 13:47
Flavor·PCRE (Legacy)

/
(?<=\d)(?=(\d{3})+(?!\d))
/
g
Open regex in editor

Description

Basically take a number and split it into thousands. I.e. take three chars from the end of the number until there is 3 or less chars left.

Submitted by Axb