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

Why regular expressions? Why not just substring matching?


This, much more deterministic!


Not sure if you are joking, but regexes are deterministic.


Oh, no I didn't mean to say regex or not, I meant regex over XML vs regex over a string. The first has the illusions everyone is bringing up that XML is not regular, but having clarity that it is ultimately a string is the correct set of assumptions.




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

Search: