Regular Expressions 101

Community Patterns

1...34567...901

Community Library Entry

5

Regular Expression
PCRE (PHP <7.3)

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

Description

relative to absolute

Submitted by xp_prg - 10 years ago