Regular Expressions 101

Community Patterns

SCSS abstract class

1

Regular Expression
PCRE (PHP <7.3)

/
%([a-zA-Z-_])*\s?\{[\s,]*\n(.*?)\n\}\s*\n
/
gs

Description

Return content of %abstract { ... } for file processing

Submitted by digitaldonkey - 8 years ago