I need help with a regex for matching a quoted string that could have an embedded escaped quote.
For example, given string "'John\'s bike'". The basic pattern i was starting with, "'[^']*'", and expanding it to negate case of embedded escaped quotes using lookbehind doesn't work: "'((?<\\)[^'])*'".
Anyone has idea?
The string could be a series of quoted strings, e.g., "'John\'s bike', 'Mary\'s hat', 'my shoes'", and i want to tokenize each of the quoted substrings separately.
"' .. '"you introduce a double delimiter. Not really too good. By double delim, I mean a delimiter that consists of 2 characters, that have open/close specific context. Like should"'hello\'"world match?