Regular Expressions 101

Community Patterns

0

tilak phishing

PCRE (PHP <7.3)
tilak phishing
Submitted by anonymous - 3 years ago

Remove / delete / strip style attribute from html tags

0

Regular Expression
PCRE (PHP <7.3)

/
\<(\w+)\s[^>]*?style=([\"|\']).*?\2\s?[^>]*?(\/?)>
/
gmi

Description

Loading markdown...
Submitted by socialblogsitewebdesign.com - 8 years ago