Regular Expressions 101

Library entries

Remove common numeric suffixes (eg: 40m, 60%)

Vote

4

Regular Expression
pcre

/
\b([\d\.]+)[mkb%](?!\S)
/
ig

Description

Loading markdown...
Submitted by anonymous - 6 years ago