Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Donate
Info
Regex Editor
Community Patterns
Account
Regex Quiz
Settings
Order By
Most Recent
Most upvotes
Most downvotes
Highest Score
Lowest Score
Relevance
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET 7.0 (C#)
Rust
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 120 community submitted regex patterns...
1
XML/HTML Tag selector
PCRE2 (PHP >=7.3)
Pros: Attribute-aware (but not complete parse) Content-aware (text only) Cons: Might poor performance (unnecessary matches if you work on a ssr thing)...
Submitted by
stdpi
-
2 years ago
1
Secure Apache WordPress Root Directory
PCRE2 (PHP >=7.3)
Secure Apache WordPress Root Directory using your Apache vhost config file instead of .htaccess by using this RegEx for file-name exclusions' i.e. (wp-activate|wp-mail|wp-signup) and {wp-} for all WordPress root files' starting with {wp-}. Excluding wp-activate.php, wp-signup.php and wp-mail.php fr...
Submitted by
Scæntią
-
a year ago
(Last modified a year ago)
1
Find All Types In Salesforce's Package.xml
PCRE (PHP <7.3)
This regex will find all the types definitions following the
Submitted by
Jerome Russ
-
9 years ago
1
Find location of Open Search Description XML file
PCRE (PHP <7.3)
Find the location (HREF value) of the Open Search Description link tag.
Submitted by
Evander Consus
-
9 years ago
1
Find location of Open Search Description XML file
PCRE (PHP <7.3)
Find the location (HREF value) of the Open Search Description link tag.
Submitted by
Evander Consus
-
9 years ago
1
XML regex ADK
PCRE (PHP <7.3)
no description available
Submitted by
Arjen
-
9 years ago
1
Match arbitary metadata in WordPress export XML
ECMAScript (JavaScript)
Allows for easy removal of metadata in WP export file
Submitted by
anonymous
-
9 years ago
1
XML Double Tag
PCRE (PHP <7.3)
no description available
Submitted by
Donovan
-
9 years ago
1
UserConfiguration.xml
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
1
Match XML Self-Closing Tags
PCRE2 (PHP >=7.3)
comicdiversity.com
Submitted by
anonymous
-
a year ago
1
XML Attribute
PCRE2 (PHP >=7.3)
apsmart.mobi
Submitted by
anonymous
-
a year ago
1
any tag
PCRE (PHP <7.3)
regex used to search for any tag (both html and xml)
Submitted by
dasmi
-
10 years ago
1
Find legacy PHP opening tags
PCRE (PHP <7.3)
Matches <? not followed by a p or an x (finds <? and <?=, ignores <?php and <?xml
Submitted by
anonymous
-
10 years ago
1
Pubmed Dates
PCRE (PHP <7.3)
PubMEd XML contains multiple date blocks, with or without Month, day, hour, minute. USAGE: while(my($pubstatus,$year,$month,$day,$hour,$minute)= $article =~ m% (?:\s* (?:\s(\d?)\s)* (?:\s(\d?)(?:)?\s)...
Submitted by
Andy Reid
-
9 years ago
1
Invalid HTML Attribute (Permissive)
ECMAScript (JavaScript)
This regex is based on the specifications in the w3c documentation. The rules are* very permissive, and some* of this characters actually lead to errors in browsers.
Submitted by
bye-csavier
-
a year ago
1
Invalid HTML Attribute (Strict)
ECMAScript (JavaScript)
This version of the regex is less permissive than the w3c documentation.. It matches only the common attribute syntax.
Submitted by
bye-csavier
-
a year ago
1
SAML extract Attribute Values from specified Attribute
PCRE2 (PHP >=7.3)
This regex extracts Attribute Values from specified Attribute Name. Only known edge case is if a tag is the first tag in the string, but it shouldn't be the case for SAML responses It can easily adapted to do the same type of extract from an XML tag containing multiple tags containing values
Submitted by
Skerilyo
-
6 months ago
(Last modified 6 months ago)
0
XML 1.0 dateTime values
Python
dateTime type matching regex for XML 1.0
Submitted by
DervishD
-
10 years ago
0
Xml Start Cleaner
ECMAScript (JavaScript)
Selects Xml version and Encoding and whitespaces
Submitted by
Edward Coughlan
-
10 years ago
-1
xml
Python
no description available
Submitted by
anonymous
-
10 years ago
1
2
3
4
...
6