Regex for all active SCSS variables

See here for the original answer.

If you are looking for all occurrences of SCSS variables that are being used, this will work for you:

:.*(\$[\w-]+)

A demo can be found here.


Tags

  1. regex (Private)
  2. scss (Private)
  3. stack-overflow (Private)
  4. answer (Private)