Regular Expressions 101

Community Patterns

1

test

PCRE (PHP <7.3)
no description available
Submitted by anonymous - 9 years ago
0

seasons

PCRE (PHP <7.3)
no description available
Submitted by anonymous - 9 years ago
1

sushiroles

PCRE (PHP <7.3)
some sushi role
Submitted by anonymous - 9 years ago
-3

mama

PCRE (PHP <7.3)
no description available
Submitted by anonymous - 9 years ago
1

foobar

PCRE (PHP <7.3)
no description available
Submitted by anonymous - 9 years ago
6

json

PCRE (PHP <7.3)
{1:aa,2:bb,3:"aa:bb"}
Submitted by suat & umut - 9 years ago
1

json

PCRE (PHP <7.3)
no description available
Submitted by suat & umut - 9 years ago

Test prioritized match

1

Regular Expression
PCRE (PHP <7.3)

/
\s*([a-zA-Z])(?(?=\S*?[qwrtpsdfghjklzxcvbnmQWRTPSDFGHJKLZXCVBNM]\S)(?:\S*?)([qwrtpsdfghjklzxcvbnmQWRTPSDFGHJKLZXCVBNM])|([eyuioaEYUIOA]))?[a-zA-Z]*?([a-zA-Z])?[-\?\.,\s+]
/
g

Description

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