5 ms·
Use regular expressions to extract the desired content. You shouldn't use regex for parsing HTML. It's not reliable, nor suitable. Use a proper DOM parser. Rea
by nreece 12y ago
Use regular expressions to extract the desired content.
You shouldn't use regex for parsing HTML. It's not reliable, nor suitable. Use a proper DOM parser. Read http://blog.codinghorror.com/parsing-html-the-cthulhu-way/ http://blog.codinghorror.com/parsing-html-the-cthulhu-way/