Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Social
Join the Discord community!
Follow me on twitter!
Send me an email
Donate
Donate
Donate through Paypal
Become a Github Sponsor
Info
Info
Find out what's new!
RegEx101 Wiki
Report bugs or make suggestions
What's new?
Loading content...
Close
Regex Editor
Regex Editor
Community Patterns
Community Patterns
Account
Account
Regex Quiz
Regex Quiz
Settings
Settings
Live Help
Live Help
Get help on Discord
Get help on IRC
Order By
Most Recent
Highest Score
Lowest Score
Most upvotes
Most downvotes
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET (C#)
Rust
Sponsors
Community Patterns
Search among 15,340 community submitted regex patterns...
-3
0 upvotes, 3 downvotes (score 0%) (You must be signed in to vote)
Xml parser
PCRE (PHP <7.3)
Captures TagName, attributes and value in seperate groups. Apply same pattern on capture group #3 (using recursion) to parse entire xml! Apply regex defined in teststring to capture group #2 to parse all the attributes for the current tag.
Submitted by
veryanonymous
-
8 years ago
2016-05-19 22:25
-3
0 upvotes, 3 downvotes (score 0%) (You must be signed in to vote)
Xml Parser
PCRE (PHP <7.3)
Captures TagName, attributes and value in seperate groups. --- Apply same pattern on capture group #3 (using recursion) to parse entire xml! --- Apply regex defined in teststring to capture group #2 to parse all the attributes for the current tag.
Submitted by
veryanonymous
-
8 years ago
2016-05-19 22:47
-3
0 upvotes, 3 downvotes (score 0%) (You must be signed in to vote)
Xml Parser!
PCRE (PHP <7.3)
Captures TagName, attributes and value in seperate groups. --- Apply same pattern on capture group #3 (using recursion) to parse entire xml! --- Apply regex defined in teststring to capture group #2 to parse all the attributes for the current tag.
Submitted by
veryanonymous
-
8 years ago
2016-05-19 23:00
-3
0 upvotes, 3 downvotes (score 0%) (You must be signed in to vote)
iOS.Strings
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-06-23 15:27
-3
0 upvotes, 3 downvotes (score 0%) (You must be signed in to vote)
XmlnsDefinition
PCRE (PHP <7.3)
Get ClrNamespace and optional AssemblyName from XmlnsDefinition in xaml
Submitted by
Ivanov Anton
-
8 years ago
2016-02-19 14:53
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
WanaKana.js to AutoHotKey hack
PCRE (PHP <7.3)
Doesn't port to AHK cleanly but it's a start
Submitted by
TheNinth
-
10 years ago
2014-02-04 10:29
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression Help!
PCRE (PHP <7.3)
Stuck trying to key of Number of Failed BGPs to return the result in the next ' line.
Submitted by
anonymous
-
9 years ago
2014-08-20 14:09
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Tele
PCRE (PHP <7.3)
no description available
Submitted by
Alpha
-
9 years ago
2015-02-10 10:36
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Single Mustache
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2015-03-13 22:24
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regex for parsing function command line arguments
PCRE (PHP <7.3)
How i can parse the following function command line: The separtor is (\s-\w\s) like -c or -d or -n C:/my app/bin/Reader.dll -n Proc_20ms -c C:/Users/Braun/Desktop/test.csv -t Continue the simulation from the first line of the csv-file -j none -V errors and warnings (default) -d , to: ...
Submitted by
Braun
-
9 years ago
2015-03-22 16:06
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Numéro téléphone portable
PCRE (PHP <7.3)
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
-
9 years ago
2015-05-11 15:57
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Check_Email
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2015-06-05 20:24
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Search for progressive download numbre
PCRE (PHP <7.3)
no description available
Submitted by
Antonio Malatesta
-
8 years ago
2015-07-10 10:49
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
If a line seems valid phone number, change to common format
PCRE (PHP <7.3)
Let's say a phone number is valid in case it has 11 digits (or 13 in case we use 00 instead of + ). Take those lines to common format. original idea was to remove all non-digit characters from those lines with simple match like but combined with look-ahead it just did not work, had to go through ea...
Submitted by
zolo
-
8 years ago
2015-07-25 18:34
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Find all Internet Explorer 11.x pkgmgr packages
PCRE (PHP <7.3)
This regex can be used to find all of the packages (.mum) files in the WINDIR%\servicing\Packages directory. I used it to remove the update packages from Winodws 7 pkgmgr /up:"filename" /norestart /quiet
Submitted by
Pressanykey
-
8 years ago
2015-08-12 13:55
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
UK Companies Registration Number
PCRE (PHP <7.3)
Checks that the number and optional prefix submitted are in a valid UK Companies House format.
Submitted by
Steve Haworth
-
8 years ago
2015-09-08 09:07
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Most SAS boundaries
PCRE (PHP <7.3)
Picks up %macro, %inc, data step, and proc boundaries.
Submitted by
Leo Lopes
-
8 years ago
2015-09-08 15:10
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
SAS Boundaries version 3
PCRE (PHP <7.3)
Basic sas boundaries, %macro proc %include etc
Submitted by
Leo Lopes
-
8 years ago
2015-09-08 19:48
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Validate Semantic version numbering
PCRE (PHP <7.3)
This validates version numbers that adhear to the Semantic protocol e.g. in form of xx.xx.xx or 1.2.2
Submitted by
Al
-
8 years ago
2015-09-10 00:10
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
#tagging tag form regex
PCRE (PHP <7.3)
hash tagging actual title or description format regex
Submitted by
rameespu@gmail.com
-
8 years ago
2015-10-09 09:26
1
2
3
4
...
767
UK Postcode Checker
22
59 upvotes, 37 downvotes (score 51.5%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
^
(
[
a
-
zA
-
Z
]
{1,2}
\d
{1,2}
)
\s
*
?
(
\d
[
a
-
zA
-
Z
]
{2}
)
$
/
gmi
Open regex in editor
Description
Loading markdown...
Submitted by
MaffooBristol
-
9 years ago
2014-10-21 08:23