This link has been bookmarked by 472 people . It was first bookmarked on 02 Mar 2006, by someone privately.
-
18 Sep 17
-
10 Jul 17
-
regular expression is a pattern describing a certain amount of text
-
regular expressions are highlighted in red
-
Matches are highlighted in blue
-
Word boundaries and quantifiers are blue
-
escaped literals are gray
-
character classes are orange
-
purple for meta tokens
-
green for grouping
-
"string" to indicate the text that the regular expression is applied to
-
-
27 Mar 17
-
09 Mar 17
-
17 Jan 17
-
08 Sep 16
-
Regex Tutorial
-
-
30 Jul 16
-
Mark the "Regular expression" checkbox, and click the Find First button.
-
-
23 May 16
-
14 Jul 15
-
06 May 15
-
17 Jan 15
-
14 Jan 15
-
13 Jan 15
-
31 Dec 14
-
26 Nov 14
Fernando GonzalezRegular expressions are a cross-language syntax for matching strings.
-
18 Nov 14
-
06 Nov 14
-
07 Aug 14
-
04 Aug 14
-
rogrammer, your software will run faster since even a simple regex engine applying the above regex once will outperform a state of the art plain text search algorithm searching through the data five times. Regular expressions also reduce development time. With a regex engine, it takes only one line (e.g. in Perl, PHP, Python, Ruby, Java, or .NET) or a couple of lines (e.g. in C using PCRE) of code to,
-
-
24 Jun 14
-
his tutorial teaches you all you need to know to be able to craft powerful time-saving regular expressions. 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.
The tutorial doesn't stop there. It also explains how a regular expression engine works on the inside, and alert you at the consequences. This helps you to quickly understand why a particular regex does not do what you initially expected. It will save you lots of guesswork and head scratching when you need to write more complex regexes.
-
The tutorial doesn't stop there. It also explains how a regular expression engine works on the inside, and alert you at the consequences. This helps you to quickly understand why a particular regex does not do what you initially expected. It will save you lots of guesswork and head scratching when you need to write more complex regexes.
-
Basically, a regular expression is a pattern describing a certain amount of text. Their name comes from the mathematical theory on which they are based. But we will not dig into that. You will usually find the name abbreviated to "regex" or "regexp". This tutorial uses "regex", because it is easy to pronounce the plural "regexes". On this website, regular expressions are printed as regex highlighted in red.
-
Basically, a regular expression is a pattern describing a certain amount of text. Their name comes from the mathematical theory on which they are based. But we will not dig into that. You will usually find the name abbreviated to "regex" or "regexp". This tutorial uses "regex", because it is easy to pronounce the plural "regexes". On this website, regular expressions are printed as regex highlighted in red.
This first example is actually a perfectly valid regex. It is the most basic pattern, simply matching the literal text regex. A "match" is the piece of text, or sequence of bytes or characters that pattern was found to correspond to by the regex processing software. Matches are highlighted in blue on this site.
\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b is a more complex pattern. It describes a series of letters, digits, dots, underscores, percentage signs and hyphens, followed by an at sign, followed by another series of letters, digits and hyphens, finally followed by a single dot and between two and four letters. In other words: this pattern describes an email address.
-
This first example is actually a perfectly valid regex. It is the most basic pattern, simply matching the literal text regex. A "match" is the piece of text, or sequence of bytes or characters that pattern was found to correspond to by the regex processing software. Matches are highlighted in blue on this site.
-
-
28 Feb 14
-
Regular Expressions Tutorial
Learn How to Use and Get The Most out of Regular Expressions -
Regular Expressions Tutorial
Learn How to Use and Get The Most out of Regular Expressions
-
-
10 Feb 14
-
29 Jan 14
-
02 Jan 14
-
27 Nov 13
-
13 Nov 13
-
10 Nov 13
-
16 Sep 13
-
21 Aug 13
-
04 Aug 13
-
27 Jul 13
-
25 Jun 13
-
21 Jun 13
-
20 Jun 13
-
14 Jun 13
-
26 Apr 13
-
a pattern describing a certain amount of text
-
-
05 Apr 13
-
03 Apr 13
-
20 Feb 13
-
17 Feb 13
-
06 Dec 12
-
16 Nov 12
-
13 Nov 12
-
12 Nov 12
-
11 Oct 12
-
29 Sep 12
-
14 Sep 12
-
09 Aug 12
-
02 Aug 12
-
07 Jul 12
carlos puentesRegular Expression Tutorial
Learn How to Use and Get The Most out of Regular Expressions
In this tutorial, I will teach you all you need to know to be able to craft powerful time-saving regular expressions. I will start with the most basic concepts, so that you can follow this tutorial even if you know nothing at all about regular expressions yet.regex tutorial programming regexp reference tutorials regular expressions
-
15 May 12
-
08 May 12
-
08 Apr 12
-
06 Mar 12
-
02 Mar 12
Rudiger Wolf"Regular Expression Tutorial
Learn How to Use and Get The Most out of Regular Expressions
In this tutorial, I will teach you all you need to know to be able to craft powerful time-saving regular expressions. I will start with the most basic concepts, so that you can follow this tutorial even if you know nothing at all about regular expressions yet.
But I will not stop there. I will also explain how a regular expression engine works on the inside, and alert you at the consequences. This will help you to understand quickly why a particular regex does not do what you initially expected. It will save you lots of guesswork and head scratching when you need to write more complex regexes."reference tutorials regular expressions regex tutorial programming
-
28 Feb 12
-
19 Jan 12
-
20 Dec 11
-
02 Dec 11
-
08 Nov 11
-
02 Nov 11
-
24 Oct 11
-
23 Oct 11
-
12 Oct 11
-
28 Sep 11
-
27 Sep 11
-
15 Sep 11
-
13 Jul 11
-
I will use the term "string" to indicate the text that I am applying the regular expression to. I will highlight them in
-
Examples are the open source PCRE engine (used in many tools and languages like PHP)
-
-
23 May 11
Thomas ██████Regular Expression Tutorial - Learn How to Use Regular Expressions: http://bit.ly/MTlXc
-
13 May 11
-
31 Mar 11
-
28 Mar 11
-
a regular expression is a pattern describing a certain amount of text
-
A regular expression "engine" is a piece of software that can process regular expressions
-
trying to match the pattern to the given string.
-
-
24 Mar 11
-
01 Mar 11
-
08 Feb 11
-
29 Jan 11
-
28 Jan 11
-
27 Jan 11
-
09 Jan 11
Long Nguyen H DIn this tutorial, I will teach you all you need to know to be able to craft powerful time-saving regular expressions. I will start with the most basic concepts, so that you can follow this tutorial even if you know nothing at all about regular expressions
regex tutorial programming regexp reference tutorials development howto
-
02 Jan 11
-
21 Dec 10
-
09 Nov 10
-
04 Nov 10
-
08 Oct 10
-
07 Sep 10
-
24 Jul 10
-
15 Jul 10
-
13 Jul 10
-
18 Jun 10
-
26 May 10
-
23 May 10
-
06 May 10
-
24 Apr 10
-
16 Mar 10
-
14 Mar 10
controlc deIn this tutorial, I will teach you all you need to know to be able to craft powerful time-saving regular expressions. I will start with the most basic concepts, so that you can follow this tutorial even if you know nothing at all about regular expressions
-
08 Mar 10
-
12 Feb 10
-
02 Feb 10
pleasedontbelongThis tutorial will teach you how to create your own regular expressions, starting with the most basic regex concepts and ending with the most advanced and specialized capabilities.
-
24 Jan 10
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.