RegexOneLearn regular expressions with simple, interactive examples.
Lesson 1: An Introduction and the ABCs
Regular expressions are extremely useful in extracting information from text such as code, log files, spreadsheets, or even documents. And while there is a lot of theory behind formal languages, these sets of lessons and examples will explore the more practical uses of regular expressions so that you can use them as quickly as possible.
The first thing to recognize when using regular expressions is that everything is essentially a character, and we are writing patterns to match a specific sequence of characters (also known as a string). Ascii, or latin, letters include those on your keyboard as a subset, and unicode characters can be used to match foreign text. They include digits and punctuation and all the special characters like %#$@!.
Below are a couple similar strings, notice how the text changes to highlight matches as you type. A pattern that matches all the strings below may be as simple as the exact letters that are common in each string. If you enter a pattern that does not match all three strings, you will be notified in the results column.