Regular Expressions 101

Community Patterns

1

loyal

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

relative to absolute

5

Regular Expression
PCRE (PHP <7.3)

/
^(.*)((<img|<script|<link)(.*) (src|href))\=(\"|')(?!cdn|https|https|\/\/)(\/)?(<\/script>|\>)?(.*)$
/
m

Description

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