Re:Learn Regex the Easy Way
by davidreiss on Thursday August 10, 2017 @09:18AM
(#14979305)
That's one of my pet peeves too. Another pet peeve is that I only touch regex once every few months. When you have a regex set to parse a domain of data you move on to other things. After a while you forget the regex syntax and when you have to parse another set of text or have to debug the older regex, I end up having to relearn a bit of it. But I guess it comes with the territory.
[ Parent
| on HN ]
Re:Learn Regex the Easy Way
by ridiculous_fish on Thursday August 10, 2017 @12:03PM
(#14981022)
Python has a nice trick for commenting regexs with re.VERBOSE. I use it for all non-trivial regexs.