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
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 7.0 (C#)
Rust
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 2,500 community submitted regex patterns...
0
fred
Python
test
Submitted by
test
-
9 years ago
0
https://regex101.com/r/lS4dV7/1
Python
ipv4 address matching
Submitted by
Unknown
-
9 years ago
0
Get any word before specific string
Python
no description available
Submitted by
anonymous
-
9 years ago
0
Proposed OFX DateTimeType pattern for v. 2.1.1+
Python
no description available
Submitted by
Oleg Sakharov (karpuscul@gmail.com)
-
9 years ago
0
phone number russia
Python
phone number without spaces or hyphens +7YYYXXXXXXX
Submitted by
vscoder
-
9 years ago
0
CPE 466 Lab 1 Sentence Delimiter
Python
no description available
Submitted by
anonymous
-
9 years ago
0
RegEx for weaterdata from a YR xml file
Python
no description available
Submitted by
Noko
-
9 years ago
0
find a string (placeholder) inside a string
Python
find a string (placeholder) inside a string
Submitted by
vikash Kumar Agarwal (vikashmnk)
-
9 years ago
0
Regex json
Python
no description available
Submitted by
anonymous
-
9 years ago
0
APACHE_ACCESS_LOG_PATTERN
Python
Used in lab2 spark for pyspark access log pattern recognition
Submitted by
anonymous
-
9 years ago
0
shankar g mirpuri social security number
Python
no description available
Submitted by
anonymous
-
9 years ago
0
match invalid postcode
Python
match as long as not 5digit code
Submitted by
anonymous
-
9 years ago
0
emailfider
Python
no description available
Submitted by
anonymous
-
9 years ago
0
Reads C-like comments
Python
Reads C comments as this "/* Do test / and removes / */ parts and leaves only comment part
Submitted by
Shuhrat Rahimov
-
9 years ago
0
Sass variable assignation
Python
find every Sass variabile assignation
Submitted by
Giorgia Bonini
-
9 years ago
0
Finding SEI File Date in File Name
Python
For flags data
Submitted by
Andrew Chalk
-
9 years ago
0
Date Parser
Python
Parses date in (Month Day Year) format with delimiting chars being -\/ or whitespace
Submitted by
Awk
-
9 years ago
0
my regex for multiline
Python
multiline input with tagged
Submitted by
Ali GĂ–REN
-
9 years ago
0
single line acronym
Python
no description available
Submitted by
anonymous
-
9 years ago
0
Find missing space around operators (=, +, -, *, /)
Python
no description available
Submitted by
rugk
-
9 years ago
1
...
4
5
6
7
8
...
125
Match XML that has a single root element
-2
Regular Expression
PCRE (PHP <7.3)
/
^\s
*
(?:
<
\?
xml
[^
>
]
+
>
)?
\s
*
<
(
[^
>
]
+
?
)
>
[
\s\S
]
+
?
<
\/
\1
>
\s
*
?
$
/
Open regex in editor
Description
Can be used as a basic validator to ensure that XML has only a single root element
Submitted by
Jerome Wilson
-
9 years ago