Regular Expressions 101

Community Patterns

Community Library Entry

2

Regular Expression
ECMAScript (JavaScript)

/
url\((\'|\")~[\w.\/\-]*(png|gif|jpg|jpeg|svg)[\w.\/]*(\'|\")\);*\s*
/
g

Description

Find any url('~filename.jpg'). URL must contain tilde

Submitted by @adjavaherian - 9 years ago