Regular Expressions 101

Community Patterns

1

loyal

PCRE2 (PHP >=7.3)
loyal
Submitted by anonymous - 10 hours ago
1

named capture

PCRE2 (PHP >=7.3)
simple named capture
Submitted by Gene - a day ago
1

extract url

PCRE2 (PHP >=7.3)
extract url
Submitted by anonymous - 14 days ago

SGML & XML

1

Regular Expression
PCRE2 (PHP >=7.3)

/
<([a-z]+)(?>"[^"]*"|'[^']*'|[^\/>])*(?>>(?>(?R)|[\s\S])*?<\/\1>|\/?>)
/
g

Description

Loading markdown...
Submitted by anonymous - 5 months ago