Regular Expressions 101

Community Patterns

0

ASD

PCRE (PHP <7.3)
HI
Submitted by anonymous - a year ago
0

嵌入条件

PCRE2 (PHP >=7.3)
嵌入条件
Submitted by anonymous - a year ago
0

find abc in string

PCRE2 (PHP >=7.3)
first test
Submitted by anonymous - a year ago
0

regex-input-number

PCRE2 (PHP >=7.3)
regex-input-number
Submitted by me - a year ago

Sentence and word validator

1

Regular Expression
PCRE (PHP <7.3)

/
^(?:(?<S>((?<W>[^\x20\.\r\n\(\)]*)\x20)*\g<W>\.|\(\g<W>((\x20\g<W>)*)?\))(\x20\g<S>)*)?$
/
gm

Description

Loading markdown...
Submitted by luis140219 on GitHub - 8 years ago