This post by Eric Miller gives 5 use cases for regex. As per his introduction, I’m only an occasional user of regex, but it’s one of those skills worth learning.
I’ve found knowing some basic regex to be extremely useful in my day-to-day work. So few things pay off such good returns for so little time invested, and I wish I’d learned it years ago