Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
www\.[a-z0-9-]*\.[a-z]*|(?m)^.*svg\+xml.+|\.org|\.com|\.io|\.woff2|.eot|.woff|.ttf|.svg|((?<=\.)[a-z][a-z-0-9\.]*[^\{\/\:\?])
/
g

Description

Using it should work with just about any css format ignoring matches from URL's and SVG data.

Submitted by anonymous - 8 years ago