Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

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

Description

数字格式化,匹配没3位的空格

Submitted by anonymous - 7 years ago