Regular expressions ("regexes") are supercharged Find/Replace string operations. Regular expressions are used when editing text in a text editor, to:
- check whether the text contains a certain pattern
- find those pattern matches, if there are any
- pull information (i.e. substrings) out of the text
- make modifications to the text.
... read the whole story at qntm.org.