Regular
Expressions
101
Please wait while the app is loading...
Please enable JavaScript to use this web application.
Regular
Expressions
101
@regex101
Donate
Sponsor
Contact
Bug Reports & Feedback
Wiki
What's new?
What's new?
Loading content...
Close
Regex Editor
Regex Editor
Regex Library
Regex Library
Account
Account
Regex Quiz
Regex Quiz
Settings
Settings
Live Help
Live Help
Order By
Most Recent
Most Points
Fewest Points
Filter by Flavor
PCRE2
PCRE
ECMAScript
Python
Golang
Java
.NET
Sponsors
All your environment variables, in one place
Library entries
Search library
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
pcre
Get the root of a Windows path
This extracts the "root" (e.g. drive) from a Windows path. See the unit tests for examples
Submitted by
J5lx
-
8 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
SO Question
SO Question
Submitted by
PaperBirdMaster
-
8 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
javascript
Regex not work in online regexEditor but work in actionscript3 code
Regex : /^\s\d+\s$(?:\r?\n?)+^\s([\d:,\.]+)\s-->\s([\d:,\.]+)\s$(?:\r?\n?)+((?:.(?:\r?\n?)?)?)(?:\r\n|\r|\n|$)/gm; Test String : 1...
Submitted by
anonymous
-
8 years ago
0
3 upvotes, 3 downvotes (50% like it) (You must be signed in to vote)
pcre
check if a string starts with an integer, then hyphen, then anything
no description available
Submitted by
anonymous
-
8 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
remove link from discuz quoted message
no description available
Submitted by
Paul Wang
-
8 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
javascript
Greatest common divisor
Calculates the greatest common divisor of two numbers. Attention: pipes in the substitution separate alternatives. If one alternative does not match, the next alternative is tried if it exists. The substitution must be repeated until it cannot substitute further.
Submitted by
luis140219 on GitHub
-
8 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Phone Guatemala
Regex for phones in Guatemala
Submitted by
Rodrigo Polo
-
8 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Strip / Delete / Remove / empty paragraphs
You can format p:empty paragraphs with CSS, but sometimes they are not completely empty. This is meant to remove those.
Submitted by
SocialBlogsiteWebDesign.com
-
8 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
30164958
no description available
Submitted by
anonymous
-
8 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
StackOverflow answer for: How can I parse an attribute string to an ar
no description available
Submitted by
anonymous
-
8 years ago
2
5 upvotes, 3 downvotes (63% like it) (You must be signed in to vote)
pcre
foreach
no description available
Submitted by
anonymous
-
8 years ago
2
3 upvotes, 1 downvotes (75% like it) (You must be signed in to vote)
pcre
foreach
no description available
Submitted by
anonymous
-
8 years ago
7
22 upvotes, 15 downvotes (59% like it) (You must be signed in to vote)
javascript
Match text (not within html tag)
no description available
Submitted by
Moistly
-
8 years ago
1
7 upvotes, 6 downvotes (54% like it) (You must be signed in to vote)
pcre
IP v4 format validation
Valid 0.0.0.0 1.1.1.1 101.101.101.101 255.255.255.255 156.0.1.10...
Submitted by
NexRezzo
-
8 years ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre
Numéro téléphone portable
prend en compte les +33 requiert un début par 06 ou 07 accepte les séparateurs de type "." ou " "
Submitted by
brad.inside@gmail.com
-
8 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
javascript
Liberal Email Address
Very simple & basic. More forgiving, less stringent. Allows anything which looks reasonably valid. Allows one at-symbol. Requires a two part hostname (i.e. abc@localhost is not allowed)
Submitted by
billinghamj
-
8 years ago
2
2 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
File filtering by extension
You would like to scan a folder containing many files (Example : *.pb, *.pbi, *.pbp and *.pbf) and you are interested only by two type of files (example : *.pb and *.pbi). This expression will match only if extension match (in this case *.pb and *.pbi) otherwise no reaction. Feel free to change file...
Submitted by
StarBootics
-
8 years ago
0
3 upvotes, 3 downvotes (50% like it) (You must be signed in to vote)
pcre
URL to link
http://blog.jmsinfo.co/?d=2015/02/16/10/17/49
Submitted by
Mickaël S.
-
8 years ago
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
pcre
For justin
dis is why you match shit lots
Submitted by
anonymous
-
8 years ago
24
67 upvotes, 43 downvotes (61% like it) (You must be signed in to vote)
javascript
Quote Macthing with escape
Matches text within quotes (", ') and escapes the charecters.
Submitted by
Vihan Bhargava
-
8 years ago
1
...
597
598
599
600
601
602
603
...
648
Validate mail
Vote
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
Regular Expression
pcre
/
^
(
(
[^
<>()[
\]\\
.,;:
\s
@
\"
]
+
(
\.
[^
<>()[
\]\\
.,;:
\s
@
\"
]
+
)*
)
|
(
\"
.
+
\"
)
)
@
(
(
\[
[
0
-
9
]
{1,3}
\.
[
0
-
9
]
{1,3}
\.
[
0
-
9
]
{1,3}
\.
[
0
-
9
]
{1,3}
\]
)
|
(
(
[
a
-
zA
-
Z
\-
0
-
9
]
+
\.
)+
[
a
-
zA
-
Z
]
{2,}
)
)
/
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
- 8 years ago