I am trying to capture selectors with html elements in a style tag string in a nodejs environment.
I need to exclude strings that have # or . in front of them like css style selectors for class and id.
Something is wrong with my regexp, but I don't know where. I tried with negative lookback, but failed.
Current regex that catches all selectors in string: /((([a-zA-Z0-9\[\]\=\"\'\.\-\_/:])*?)\s?\{)/
Link to test: https://regexr.com/5cjl0
Thanks in advance!