Find CSS class names that are not inside comments using Regular Expressions
user6583 Published in September 21, 2018, 8:05 am
My current solution is this: /\.[a-z][a-z0-9-_]*/g.
At the end of the file is a comment that references the source map file: /*# sourceMappingURL=style.css.map */. Now the file extensions of that URL also get replaced.