Re:Regex character "$" doesn't mean "end-of-string"
by amelius on Wednesday March 20, 2024 @11:33AM
(#39768039)
Also, code is read more often than it is written.
[ Parent
| on HN ]
Re:Regex character "$" doesn't mean "end-of-string"
by cortesoft on Wednesday March 20, 2024 @12:05PM
(#39768457)
People say this all the time, but is it really always true? I have a ton of code that I wrote, that just works, and I never really look at it again, at least not with the level of inspection that requires parsing the regex in my head.
Re:Regex character "$" doesn't mean "end-of-string"
by wccrawford on Thursday March 21, 2024 @09:21AM
(#39778205)
Even for code I wrote once and then never have to fix, I end up reading it multiple times while I create it and the lines around it. I think it really is always true.