flapenguin / flapenguin.me-comments

Comments for https://flapenguin.me/
0 stars 0 forks source link

/xml-regex Parsing XML with Regular Expressions #3

Open flapenguin opened 4 years ago

flapenguin commented 4 years ago

https://flapenguin.me/xml-regex

Kristine1975 commented 3 years ago

Hello from two years later! I don't think the following is quite correct: (?<attrvalue>[^\s"'>]+):

flapenguin commented 2 years ago

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.