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 9,420 community submitted regex patterns...
-3
1 upvotes, 4 downvotes (score 3.6%) (You must be signed in to vote)
a
PCRE (PHP <7.3)
a
Submitted by
a
-
8 years ago
2015-07-17 20:10
-3
1 upvotes, 4 downvotes (score 3.6%) (You must be signed in to vote)
Facebook url regex
PCRE (PHP <7.3)
no description available
Submitted by
Devs Devaras
-
8 years ago
2015-07-23 09:49
-3
1 upvotes, 4 downvotes (score 3.6%) (You must be signed in to vote)
Replace abba with ABBA
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-08-30 10:24
-3
1 upvotes, 4 downvotes (score 3.6%) (You must be signed in to vote)
get table name from mapfile
PCRE (PHP <7.3)
gets a postgis tablename from a mapfile with the given layer name, may not work depending on your mapfile layout
Submitted by
warnock
-
8 years ago
2015-09-01 15:38
-3
1 upvotes, 4 downvotes (score 3.6%) (You must be signed in to vote)
Clean empty tags from HTML tags incl. tags containing space(s)
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-09-18 13:34
-3
2 upvotes, 5 downvotes (score 8.2%) (You must be signed in to vote)
Remove special character at first position of string
PCRE (PHP <7.3)
This search for special character at first position in the string
Submitted by
anonymous
-
8 years ago
2015-11-06 23:27
-3
2 upvotes, 5 downvotes (score 8.2%) (You must be signed in to vote)
retrieve hostname without subdomain
PCRE (PHP <7.3)
no description available
Submitted by
Diego Zuluaga
-
8 years ago
2015-11-19 00:55
-3
1 upvotes, 4 downvotes (score 3.6%) (You must be signed in to vote)
Regex Include & Exclude
PCRE (PHP <7.3)
Exclude part of a string in an include string.
Submitted by
anonymous
-
8 years ago
2016-01-26 19:36
-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
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
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
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
1
2
3
4
5
...
471
Replace letters in email address
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
(?!
^
)
[^
@
]
(?=
.
+
@
)
(?!
$
)
/
sg
Open regex in editor
Description
Loading markdown...
Submitted by
Kaibo
-
9 months ago
2023-03-16 16:00