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 12,780 community submitted regex patterns...
-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
-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
1 upvotes, 4 downvotes (score 3.6%) (You must be signed in to vote)
Xml Parser (improved description)
PCRE (PHP <7.3)
]+)\s()\s(?:\/>|>(.)) - (with global) finds all tags in scope 1st group is tagname 2nd group is attributes 3rd group (if it exists) is value of the tag ...
Submitted by
veryanonymous
-
8 years ago
2016-05-19 22:30
-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
-2
0 upvotes, 2 downvotes (score 0%) (You must be signed in to vote)
email regexp
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
6 years ago
2017-07-14 05:25
-2
2 upvotes, 4 downvotes (score 9.7%) (You must be signed in to vote)
Finds HTML img tags
PCRE (PHP <7.3)
no description available
Submitted by
Matt Solum
-
10 years ago
2013-09-09 02:48
-2
0 upvotes, 2 downvotes (score 0%) (You must be signed in to vote)
Remove namespaces
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
2013-11-23 15:32
-2
1 upvotes, 3 downvotes (score 4.6%) (You must be signed in to vote)
Date time
PCRE (PHP <7.3)
no description available
Submitted by
Mr.Neutro
-
10 years ago
2013-12-03 19:12
-2
1 upvotes, 3 downvotes (score 4.6%) (You must be signed in to vote)
Russian mobile number normilizer (dumb)
PCRE (PHP <7.3)
no description available
Submitted by
fullpipe
-
10 years ago
2014-01-04 16:01
-2
3 upvotes, 5 downvotes (score 13.7%) (You must be signed in to vote)
non-negative integer
ECMAScript (JavaScript)
repeat ... refactor
Submitted by
jay johnson
-
10 years ago
2014-01-16 19:16
-2
1 upvotes, 3 downvotes (score 4.6%) (You must be signed in to vote)
Get text between quotes (ignore escaped ones)
PCRE (PHP <7.3)
http://stackoverflow.com/a/171499/1519058
Submitted by
Enissay
-
10 years ago
2014-01-30 01:59
-2
4 upvotes, 6 downvotes (score 16.8%) (You must be signed in to vote)
email
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
10 years ago
2014-02-07 06:19
-2
1 upvotes, 3 downvotes (score 4.6%) (You must be signed in to vote)
Filter IP from beggin of log
PCRE (PHP <7.3)
no description available
Submitted by
W
-
10 years ago
2014-02-07 13:34
-2
10 upvotes, 12 downvotes (score 26.9%) (You must be signed in to vote)
Remove empty HTML tags
PCRE (PHP <7.3)
Removes empty HTML tags. Was needed for old input clean-up and to keep a HTML parses from crashing. Looking for improvement on bottom test.
Submitted by
R. Sartorius
-
10 years ago
2014-02-26 13:21
-2
1 upvotes, 3 downvotes (score 4.6%) (You must be signed in to vote)
Ukazka
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
2014-02-28 13:01
-2
1 upvotes, 3 downvotes (score 4.6%) (You must be signed in to vote)
failed attempt
PCRE (PHP <7.3)
no description available
Submitted by
DynV
-
10 years ago
2014-03-03 04:40
-2
1 upvotes, 3 downvotes (score 4.6%) (You must be signed in to vote)
A masz!
PCRE (PHP <7.3)
no description available
Submitted by
Ja
-
10 years ago
2014-03-03 15:09
-2
1 upvotes, 3 downvotes (score 4.6%) (You must be signed in to vote)
[A-Z]+[a-z]{1,2}[0-9]*
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
2014-03-11 13:57
-2
4 upvotes, 6 downvotes (score 16.8%) (You must be signed in to vote)
Match v4 IP address
PCRE (PHP <7.3)
no description available
Submitted by
Budiony Damyanov
-
10 years ago
2014-03-14 13:05
1
2
3
4
5
6
...
639