Not alone. I rarely turn to Regex unless it's the absolute obvious choice or it's the existing pattern in the code I'm modifying (and even then, sometimes there's a reason to remove it).
That being said, regex can be the underlying implementation of friendlier interfaces.
Not alone. I rarely turn to Regex unless it's the absolute obvious choice or it's the existing pattern in the code I'm modifying (and even then, sometimes there's a reason to remove it).
That being said, regex can be the underlying implementation of friendlier interfaces.
What do you use in place of regex?
You can implement a
replaceAll
function forString
s just using the built-inreplace
and regex: