News for hackers. Stuff that matters.
Re:ReX.js – Your RegEx companion by bhengaij on Monday November 19, 2018 @08:07PM (#18491108)
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.

Re:ReX.js – Your RegEx companion by pmarreck on Tuesday November 20, 2018 @07:32AM (#18493345)
Which is why I use expanded regex with each section commented.
Re:ReX.js – Your RegEx companion by bhengaij on Tuesday November 20, 2018 @08:35PM (#18499537)
What is expanded regex?
Re:ReX.js – Your RegEx companion by grzm on Tuesday November 20, 2018 @08:42PM (#18499572)
They're likely referring to the \x modifier, also called extended regular expressions:

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

Re:ReX.js – Your RegEx companion by bhengaij on Wednesday November 21, 2018 @12:40AM (#18500399)
I had not known about this- makes things so much easier to maintian