Regular Expressions 101

Community Patterns

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 - 8 years ago