Identical to this question:
Find and replace text within a file using commands
However I want an answer that utilizes regular expressions specifically. So in short:
Using commandline; what command can I used to search and replace text in a commandline while utilizing regular expressions?
For example:
search file.txt "([a-z]+)" "\1 blah"