Regular Expressions 101

Community Patterns

123...6

老铁六六六

1

Regular Expression
PCRE2 (PHP >=7.3)

/
(((?:[+\-\/*]6+|6+[+\-\/*]|([^6]|\b)6{1,2}(?3)|(?3)6{6,}(?3)|[0-57-9]6+|6+[0-57-9])(*SKIP)(*F))|6)
/
gm

Description

老铁 666 替换老铁六六六

Submitted by anonymous - 2 months ago (Last modified 2 months ago)