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

Definitely not common, but if you are parsing a text file you're going to use it a lot (say, you're writing a JS parser).


You really shouldn't use a lot of regexes for parsing code.

They go only on the tokenizer, if they go somewhere at all.


Agreed, it's more about quick and dirty ad hoc capture than full-fledged parser though (like when you want to extract certain object when scraping).




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

Search: