Regex is not as trivial as others claim here. NLP, DSL, Compilers need Regex. If you are working on one of them, your primary job might be writing just that.
There seems to be a bias against regular expressions because they've developed a "dubious" standing amongst programmers.
I've used Regex quite a bit doing NLP would love to know more about their use in other fields.