Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
(var\s|)\s*\w+\s+=\s+require\(\'[\w.\/]*sass[\w.\/]*\'\);*\s*
/
g

Description

Uses a single string to match any node require variables

Submitted by amird and andyt - 9 years ago