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
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 18,000 community submitted regex patterns...
1
matching value of html src attribute
PCRE (PHP <7.3)
matching value of html src attribute
Submitted by
junkuos
-
10 years ago
1
get top level domain excluding ports
ECMAScript (JavaScript)
I need to get the top level domain from the request header but it can be in a vary ways.. how can I match but exclude parts I dont want to get ie. ports
Submitted by
nei
-
10 years ago
4
uri parser
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
1
spaces in parenthesis
ECMAScript (JavaScript)
Eliminate spaces in the inner part of parenthesis.
Submitted by
Luis Colorado
-
10 years ago
2
Find any digits in string
Python
no description available
Submitted by
anonymous
-
10 years ago
3
How do I write a Regex to inspect Cisco Interfaces
PCRE (PHP <7.3)
I am asking for help in writing a regular expression to shorten this expression. I need the string below to search every interface within the range of 1 -24 to validate the configuration. If one interface does not have the required configuration then the expression fails. interface GigabitEtherne...
Submitted by
Pirates
-
10 years ago
1
Email address validator
PCRE (PHP <7.3)
Validates most email addresses. Using the range [A-Za-z0-9] at the beginning instead of \w means an address cannot begin with an underscore. This range is also used to exclude underscores from the domain (part after @).
Submitted by
Owen Howard
-
10 years ago
3
Test a string against CamelCase
ECMAScript (JavaScript)
See if a string is in CamelCase format
Submitted by
Tonny Xu
-
10 years ago
4
Match nth occurence of pattern
PCRE (PHP <7.3)
Match nth occurence of the patterns in the inner parenthesis. Put nth that you want to match in the curly braces (here, {3}).
Submitted by
Alex Hall
-
10 years ago
1
States
Python
States (US) 2 char format, matches: Ga or GA
Submitted by
miqui
-
9 years ago
-2
Detect HTML Linebreak Tags
ECMAScript (JavaScript)
Detect various possible HTML linebreak tags (eg. )
Submitted by
@benhodgson
-
9 years ago
3
images url match in text
PCRE (PHP <7.3)
no description available
Submitted by
Redfern.89
-
9 years ago
3
prices in nis
Python
no description available
Submitted by
molaxx
-
9 years ago
-3
RegEX for account code starting with 000-
PCRE (PHP <7.3)
no description available
Submitted by
Joe H
-
9 years ago
3
Div content
PCRE (PHP <7.3)
no description available
Submitted by
mohammadsaleh
-
9 years ago
1
leap year validate
ECMAScript (JavaScript)
no description available
Submitted by
Ahosan Karim Asik
-
9 years ago
1
CPF
ECMAScript (JavaScript)
Validador de CPF
Submitted by
Gustavo Américo
-
9 years ago
1
Extract domain and path from video embeds
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
4
Equation matching (without equal)
Python
use this to get value of any side of an equation. You can combine this with https://regex101.com/r/fH5kJ1/1
Submitted by
Kerosene2000
-
9 years ago
4
Roman numeral detector
PCRE (PHP <7.3)
Detects valid Roman numerals (up to 3999), and splits into 4 capture groups: thousands, hundreds, tens, and units.
Submitted by
Terence Linnell
-
9 years ago
1
...
18
19
20
21
22
...
900
Community Library Entry
-2
Regular Expression
ECMAScript (JavaScript)
/
(
<
*
br
)
[
\/
]
*
>
/
gm
Open regex in editor
Description
Detect various possible HTML linebreak tags (eg. <br> <br/> <br />)
Submitted by
@benhodgson
-
9 years ago