Yes, there are commands to do that. Fundamentally, regex is a language for describing word and character
patterns.
Try a few regexes, check that they did what you want before continuing, and gradually you will get a feel for them.

And you will find even the regex gurus strongly advocate double-checking all replacements.
It's not critical, but it's a nice skill to have.
I found the following site very helpful and easy to follow -- it taught me most of what I know about regex:
http://www.regular-expressions.info