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

Agreed. Regex is a “part of the language” not a bolt on library like you have in Python. It’s one of those cases where you don’t even know how crap regex is in another language if you’ve never used Perl.


I mentioned Boost's Regex in C++ (boost is essentially a different language), but I didn't bother to mention my experiments with regex in C, for example:

http://web.archive.org/web/20160308115653/http://peope.net/o...

I mean, you can do it, it just lacks elegance. And TBH, I still prefer C for lots of things.


You should check out janet-lang.org. It's got built in peg parsing.




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

Search: