Regex still scares the hell out of me. Not so much writing it, but reading it. If you use a regex in your code, assign it to a clearly named constant that explains what it does. And leave comments.
-
-
Replying to @bphogan
Regex is like the output of a one way hashing algorithm.
1 reply 1 retweet 8 likes
Replying to @JohnMacIntyre @bphogan
And please, if your language supports it, use named captures in addition to a clear variable name and good comments. Even if you're not going to access the captured group by name, it offers cheap clarity.
1:58 PM - 25 Aug 2018
0 replies
0 retweets
2 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.