Detecting language please wait for.......
I want to create a Python text parser. All texts in quotation marks should be found. This is quite simple in Passolo as a text parser, by setting " as the beginning and end connoisseur. But the problem is caused by escaped characters. If there is a quotation mark in the text, then write \". If you want to display a backslash \\. This is searched in paths and is often placed at the end of the string, directly before the closing quotation mark:So I need a parser that can also parse the text.
print ("c:\\test\\" + "this is a \"test\"")
The parser should then return two texts:
c:\\test\\and this is a \"test\"Any ideas?Thanks Winfried
I can offer a much simpler solution that works without regular expressions. Simply use the quotes to look for strings and introduce a some mappings for the known escape sequences.
This will also convert (and reconvert) the known escape sequences into the real characters for translators.