Regular Expressions 101

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