Open flapenguin opened 4 years ago
Hello from two years later!
I don't think the following is quite correct: (?<attrvalue>[^\s"'>]+)
:
+
instead of *
)'
when the value's delimiter is "
(if my reading of the XML spec is correct, "
is the only allowed delimiter anyway)This regex was not intended to be a complete xml parser at any means. You can potentially extend it to conform to the spec. But honestly I don't think it worth the trouble.
https://flapenguin.me/xml-regex