News for hackers. Stuff that matters.
Re:Can regular expressions parse HTML or not? by RyanZAG on Thursday February 21, 2013 @11:23AM (#5258303)
I'm using the term 'parsing' because it's the one used by the article. What else would you use regex and html together for? You only have two options: extracting data from html using regex, or modifying html using regex. Modifying using regex is just string replacement. For example, replacing all hrefs in a html document with new links. You'd use the same method as described above, with a similar 75% of all links replaced.

There are no comments on this comment yet.