SEARCH
(?<!:local\(|:global\()(\.[a-zA-Z\-0-9]+)(?!;)
Note: don't forget to skip numbers
REPLACE TO
:global($1)
SEARCH
:local\((\.[a-zA-Z0-9\-]+)\)
REPLACE TO
$1
SEARCH
(?<!:local\(|:global\()(\.[a-zA-Z\-0-9]+)(?!;)
Note: don't forget to skip numbers
REPLACE TO
:global($1)
SEARCH
:local\((\.[a-zA-Z0-9\-]+)\)
REPLACE TO
$1