
It is the most basic pattern, simply matching the literal text regex. This first example is actually a perfectly valid regex. On this website, regular expressions are shaded gray as regex. This tutorial uses "regex", because it is easy to pronounce the plural "regexes". You will usually find the name abbreviated to "regex" or "regexp". Their name comes from the mathematical theory on which they are based. What Regular Expressions Are Exactly - Terminologyīasically, a regular expression is a pattern describing a certain amount of text. It will save you lots of guesswork and head scratching when you need to write more complex regexes. This helps you to quickly understand why a particular regex does not do what you initially expected.

It also explains how a regular expression engine works on the inside and alerts you to the consequences. It starts with the most basic concepts, so that you can follow this tutorial even if you know nothing at all about regular expressions yet. This tutorial teaches you all you need to know to be able to craft powerful time-saving regular expressions.

Learn How to Use and Get The Most out of Regular Expressions
