This link has been bookmarked by 540 people . It was first bookmarked on 26 May 2006, by Aaron Kurtz.
-
16 Aug 18
-
05 Apr 18
-
17 May 17
-
26 May 16
-
23 Oct 15
-
03 Sep 15
-
30 Aug 15
-
28 May 15
-
02 Jan 15
-
The regular expressions reference on this website functions both as a reference to all available regex syntax and as a comparison of the features supported by the regular expression flavors discussed in the tutorial.
-
-
17 May 14
-
04 Feb 14
-
29 Oct 13
-
07 Jun 13
-
28 May 13
-
23 Apr 13
-
25 Feb 13
-
24 Jan 13
-
Any character except [\^$.|?*+()
-
{ and }
-
A backslash escapes special characters
-
\ (backslash)
-
Matches the characters between \Q and \E literally
-
\Q...\E
-
Matches the character with the specified ASCII/ANSI value
-
hexadecimal
-
Any character except
^-]\ -
A backslash escapes special characters
-
Negates the character class
-
digits
-
\d, \w and \s
-
(spaces, tabs, and line breaks)
-
(letters, digits, and underscores)
-
Negated versions of the above.
-
[\b] Inside a character class, \b is a backspace character. -
Matches at the start of the string the regex pattern is applied to. Matches a position rather than a character.
-
Matches at the end of the string the regex pattern is applied to. Matches a position rather than a character
-
Also matches before the very last line break if the string ends with a line break.
-
Matches a position rather than a character. Never matches after line breaks.
-
Matches a position rather than a character. Never matches before line breaks, except for the very last line break if the string ends with a line break.
-
Never matches before line breaks.
-
Matches at the position between a word character
-
and a non-word character
-
Makes the preceding item optional. Greedy
-
Makes the preceding item optional. Lazy
-
Repeats the previous item zero or more times. Greedy
-
Repeats the previous item zero or more times. Lazy
-
Repeats the previous item once or more. Greedy
-
Repeats the previous item once or more. Lazy
-
Repeats the previous item exactly n times.
-
Repeats the previous item between n and m times. Greedy
-
Repeats the previous item between n and m times. Lazy
-
Repeats the previous item at least n times. Greedy
-
Repeats the previous item n or more times. Lazy
-
-
23 Jan 13
-
abc def
-
-
10 Jan 13
-
19 Nov 12
-
19 Oct 12
-
11 Oct 12
-
01 Oct 12
-
30 Sep 12
-
20 Sep 12
-
14 Sep 12
-
22 Aug 12
-
27 Jul 12
-
18 Jul 12
-
03 Jul 12
-
07 Jun 12
-
03 Jun 12
-
23 May 12
-
ers except the listed special characters match a single instance of themselves. { and } are literal characters, unless they're part of a valid regular expression token (e.g. the {n} quantifier). a matches a \ (backslash) followed by any of [\^$.|?*+(){} A backslash escapes special characters to s -
s except the listed special characters match a single instance of themselves. { and } are literal characters, unless they're part of a valid regular expression token (e.g. the {n} quantifier). a matches a \ (backslash) followed by any of [\^$.|?*+(){} A backslash escapes special characters to sup -
oken (e.g. the {n} quantifier).
-
nstance of themselves. { and } are literal characters, unless they're part of a valid r
-
-
17 May 12
-
15 May 12
-
09 May 12
-
04 May 12
-
11 Apr 12
-
03 Apr 12
-
25 Mar 12
-
21 Mar 12
-
12 Mar 12
-
08 Mar 12
-
02 Mar 12
-
27 Feb 12
-
21 Feb 12
-
15 Jan 12
-
Regular Expression Basic Syntax Reference
-
-
14 Jan 12
-
03 Jan 12
-
16 Dec 11
-
10 Dec 11
-
18 Nov 11
-
13 Oct 11
-
07 Oct 11
-
04 Oct 11
-
23 Sep 11
-
22 Sep 11
-
09 Sep 11
-
01 Sep 11
-
17 Aug 11
-
15 Aug 11
-
13 Aug 11
-
30 Jul 11
-
12 Jul 11
-
07 Jul 11
-
05 Jul 11
-
27 May 11
-
29 Apr 11
-
28 Apr 11
-
19 Apr 11
-
29 Mar 11
-
27 Mar 11
-
24 Mar 11
-
Negates the character class, causing it to match a single character not listed in the character class. (Specifies a caret if placed anywhere except after the opening [)
-
-
11 Mar 11
-
01 Mar 11
-
18 Feb 11
-
17 Feb 11
-
09 Feb 11
-
05 Jan 11
-
24 Dec 10
-
21 Dec 10
-
03 Dec 10
-
11 Nov 10
-
26 Oct 10
-
15 Oct 10
-
01 Oct 10
-
23 Sep 10
-
09 Sep 10
-
14 Aug 10
-
11 Aug 10
-
10 Aug 10
-
08 Aug 10
-
05 Aug 10
-
16 Jul 10
Page Comments
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.