Regular Expressions 101

Community Patterns

1...34567...901

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
background\-image:(?:\s+|)url(?:\s+|)\((?:&#039;|'|")(.*)(?:&#039;|'|")\)
/
gm

Description

The best background-image fetch in here

I've not yet seen a website on which this RegEx don't work. If you do I'll be pleased to see it

Submitted by anonymous - 6 years ago