Regex for HTML/XHTML
fresco1108 opened this issue · comments
adding support for identifying tags and their attributes as well as replacement of attribute values making it more awesome. I am half way down there need some testing.
I've thought about adding support HTML/XHTML in the past, but I think that's best left to full featured web page parsing libraries like BeautifulSoup: http://www.crummy.com/software/BeautifulSoup/
you know i thought about that just a moment ago :)
Yup -- simple regular expressions can't compete with that kind of library.
I've been thinking about putting XML tags support on the JavaScript port, but I wonder if it would be really useful just to get all the tags and/or properties of a code...
@talyssonoc Jquery has excellent support for this already
@eet6646 @eet6646 @talyssonoc Yeah, I'm of the opinion that xml/html/xhtml support is outside the scope of this project. It's largely a solved problem, there's a wealth of libraries that do exactly that, and I doubt a rather sketchy regular expression based solution would be of much benefit to anyone, even if it does sound enticing at first glance. I could be persuaded otherwise, but for the time being this feature request is going on the back burner.