News for hackers. Stuff that matters.
Re:ReX.js – Your RegEx companion by cbuq on Monday November 19, 2018 @06:53PM (#18490758)
I think logfile analysis is a perfect example. Regex could be the perfect tool for one-shot analysis of logs. But if you are writing an actual commercial application to do logfile analysis, regex is probably not the right tool.
Re:ReX.js – Your RegEx companion by theamk on Tuesday November 20, 2018 @03:46PM (#18497553)
What would you use in the actual commercial applications?

I have seen people try to replace regexes with sequences of splits and accesing hardcoded field numbers. This can inmprove readability in the simple cases, but makes code much more fragile in the complex cases.

Another approach I have seen is a full featured lexer. Looks clean and very fadt, but in my experience is an overkill for most tasks