Regular Expressions 101

Community Patterns

There does not seem to be anything here

Community Library Entry

2

Regular Expression
Python

r"
(?P<selector>\$[\w\-]+)\s*:\s*(?P<properties>[^;]*?)\s*\;
"
g

Description

Parse SASS variables returning its variable name and properties.

Submitted by Agustín Bouillet - 9 years ago