Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

For parsing HTML, I'd recommend using a purpose-built HTML-parsing library instead of bothering with regular expressions. (Though, like the author of that answer wrote, regex's can work just fine for parsing small snippets.)

An interesting fact: you can parse HTML/XHTML (correctly) with some of the popular regex implementations. (Note the word implementations.)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: