Hacker News new | ask | show | jobs
by bhengaij 2765 days ago
I'm a CS guy through and through. Regular languages, cfl, ..... Np complete, what was the books name again?

But I gotta say, regex isn't the best way to show things. Hard to verify, hard to maintain and what not. Computer sciency, sure. But not well "designed".

Now I have no love lost for people who talk about stuff without understanding the fundamentals or the basics even. So I don't doubt that the person was "whatever". But I do feel that regexes need an overhaul

Ps: I'm a fan too when I have to do quick stuff in shell. But not so much when I save it to a file to be read by me and multiple people weeks later. Regex is one thing that is way easier to write than read.

1 comments

Which is why I use expanded regex with each section commented.
What is expanded regex?
They're likely referring to the \x modifier, also called extended regular expressions:

https://stackoverflow.com/questions/24642616/what-are-extend...

I had not known about this- makes things so much easier to maintian