Regular Expressions 101

Community Patterns

Community Library Entry

2

Regular Expression
PCRE (PHP <7.3)

/
(<script[^>]*src=[\'\"](.*?)[\'\"].*?\>(<\/script>)?)
/
gi

Description

found if is content src atributes

Submitted by Kun Csaba - 9 years ago