Regular Expressions 101

Community Patterns

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