Math, asked by mdrizwanrazam, 11 months ago

a pattern may exist in_​

Answers

Answered by Anonymous
3

Answer:

I'm trying to parse an XML document using a regex tokenizer in Python (It's a finite set, so regex is just fine!), and I'm having trouble matching comments properly.

The format of these comments is in the form <!--This is a comment--> where the comment itself can contain all sorts of non-alphanumeric characters (including '-')

I want to match them in such a way that I break the comment up into the following tokens:

Similar questions