Regular expressions

Regular expressions can be used to find patterns in texts and replace them as desired. For this, a pattern must be constructed and applied to a string.