Regular expressions are a mechanism for finding and replacing text in a string, in a file, in multiple files. They are used by developers in the application code, testers in autotests and just when working on the command line.