Posted 20 years ago
by Thane Plummer

I am working on an XML parser for Python, but am having trouble with the multi-line triple-quoted strings. Has anyone done this? I have tried defining pattern groups for both the "StringState" key and also the "MultiLineCommentState" key, but without success. I've gone through numerous iterations of various explicit and regex patterns, but without success.
Both the start and end of the multi-line string delimiter are the same: either """"" OR "'''".
Thanks in advance.
Both the start and end of the multi-line string delimiter are the same: either """"" OR "'''".
Thanks in advance.