hey, anyone know how to match the \ character?
I’m trying to match strings within a parsed file, something like this string = '\"' #'[^(?<!\\\)\"]* '\"'
I keep getting either errors of unmatched parens, or instaparse errors when I’m doing
\ or \\
figured it out
If anyone’s interested
string = '\"' (#'[^\"]' | '\\\\\"') '\"'
I’m know there should be a way to do it with lookbehind inside the regex, but at least now I only have one problem
Would be great to have an instaparse wiki for common grammars, if that doesn’t already exist somewhere
also, would be great to know if anyone is using a combination of instaparse and any of the nlp libraries