Regex is a popular pattern patching expression used in popular scripting languages like Sed, Awk, PHP and Perl to match strings. Use our online tool to test, debug and validate regular expressions for easier coding practices.
What is the regular expression?
A regular expression is a pattern used in a scripting languages such as the Sed, Awk, PHP, Perl, Bash and other programming languages to match subject string. It is used to search a string (or text) to match all occurances of a pattern, and allows it to act on it (i.e. replace with another string).
A regular expression uses a pattern to match a string. There are literal characters which matches exact character, and wildcard characters that matches a variety of characters. Also, there are symbols that match number of occurances (?, + and *). To give you a flavor of how regular expression works, here are some concepts used to match a text.