Regular Expressions 101

Community Patterns

1

loyal

PCRE2 (PHP >=7.3)
loyal
Submitted by anonymous - 11 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

Match all Tailwind CSS classes prefixed with dark:

1

Regular Expression
PCRE2 (PHP >=7.3)

/
\b\sdark:[\w\-:]*\b
/
gm

Description

Loading markdown...
Submitted by hexrw - 6 months ago