I would like to match all the occurrences of /
that are not included in quotes (i.e. "
).
For e.g, this would be the result of the matches
HKEY/
“SOFTWARE”/
“test/123”/
HKEY/
“SOFTWARE”/
test
HKEY/
SOFTWARE/
“test/123”/
HKEY/
SOFTWARE/
test//
test
HKEY/
SOFTWARE/
“test
HKEY/
SOFTWARE/
“test/
So far, I have tried using /((?=[^""]*(?:""[^""]*""[^""]*)*$))
.
I’ve looked at other answers but they don’t work (or are in different languages).