4 ms·
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 t
by bhengaij 8y 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.
- pmarreck 8y agoWhich is why I use expanded regex with each section commented.
- bhengaij 8y agoWhat is expanded regex?
- grzm 8y agoThey're likely referring to the \x modifier, also called extended regular expressions: https://stackoverflow.com/questions/24642616/what-are-extended-regular-expressions https://stackoverflow.com/questions/24642616/what-are-extend...
- bhengaij 8y agoI had not known about this- makes things so much easier to maintian