Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
(?:\+|\-)(?=([^"]*"[^"]*")*[^"]*$)
/
gm

Description

匹配除引号外的特殊字符 example:

"数据A+数据B"+数据C-数据D+"数据C-数据E"
Submitted by anonymous - 3 years ago