logoalt Hacker News

helix9001/11/20261 replyview on HN

The common one I fought long ago was folks who always use regular expressions when what they want is a string match, or contains, or other string library function.


Replies

Minor49ertoday at 8:04 AM

I've seen a lot of the opposite, especially having done a lot of string parsing in PHP: some developers would nest half a dozen string functions just to prepare and extract a line of data while a simple regular expression would have handled the operation much more concisely and accurately