Regular Expressions 101

Community Patterns

relative to absolute

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 - 9 years ago