A regular expression is a concise way of expressing any pattern of characters.
You construct a regular expression by combining ordinary characters with one or more metacharacters: characters that have special meaning for the shell.
Regular expressions can be used to:
Commands differ in the range of the regular expressions that they support. Check the manual page for the command for further details.