Consider the following line
"Some" string with "quotes" and \"pre-slashed\" quotes
Using regex, I want to find all double quotes without a slash in front of them. So I want the regex to find four matches for a sample sentence This ....
[^\\]"
... will find only three of them. I believe that because of the regex state machine, which first checks the command to negate the presence of a slash.
This means that I need to write a regular expression with some kind of appearance, but I don’t know how to work with these lookaheads and lookbehinds ... im not even sure what I am looking for.
The following attempt returns 6, not 4 matches ...
"(?<!\\)
Mirek source share