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,040 community submitted regex patterns...
1
Check if number is a float
ECMAScript (JavaScript)
no description available
Submitted by
@hiaru
-
10 years ago
0
Pig Latin regex
PCRE (PHP <7.3)
I got really bored so I made this (not so fancy) pig latin generator
Submitted by
jojodmo
-
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
Match nth occurence of expression
PCRE (PHP <7.3)
Change the number in curly braces (3 in this example) to match for the nth occurence of the expression in the two inner parenthesis
Submitted by
Alex Hall
-
10 years ago
-2
regex for redirect url
PCRE (PHP <7.3)
no description available
Submitted by
igor
-
10 years ago
1
regex for redirect
Python
no description available
Submitted by
igor
-
10 years ago
4
Capture only top-level (root) domain in URL
PCRE (PHP <7.3)
no description available
Submitted by
guyfawkes
-
10 years ago
2
Match domain part in Http(s) URLs
PCRE (PHP <7.3)
no description available
Submitted by
Nilratan
-
10 years ago
0
test
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
1
imperial string
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
1
PHP DateInterval Specification Validator
PCRE (PHP <7.3)
This REGEX could be used to validate a PHP DateInterval specification.
Submitted by
Tim Visée, http://timvisee.com/
-
10 years ago
1
very basic email regex
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
10 years ago
0
search file extention
PCRE (PHP <7.3)
search file extention
Submitted by
fau
-
10 years ago
16
Password
ECMAScript (JavaScript)
Safe Password that allow only with a number, a lowercase, a uppercase, and a special character
Submitted by
davidlondono
-
10 years ago
1
URL parser
Python
gets the ://:/ from am url
Submitted by
anonymous
-
10 years ago
1
Less number variables to dictionary
PCRE (PHP <7.3)
extract keys and values from .less variables
Submitted by
actarian
-
10 years ago
1
Remove GO and split for batch SQL text
ECMAScript (JavaScript)
Useful for when you need to convert a T-SQL MSSMS Server batch into individual SQL requests by removing the GO between them. e.g. Dim SQLBatches As String() = Regex.Split(text, "(?:\s|\r|\n)+GO\s*(?:\r|\n)", RegexOptions.IgnoreCase)
Submitted by
SarahC
-
10 years ago
6
Replace caracters not inside HTM tags
ECMAScript (JavaScript)
Select a character (or string) ingnoring if that element is inside the HTML tags. Useful to apply html tags using replace.
Submitted by
Alex5B
-
10 years ago
1
HP OO Shell OPeration
PCRE (PHP <7.3)
I am trying to capture from HP OO SSH shell operation, basicall it will run the commands what we send from HP OO and this operation expects return output to send next command. I am trying to send command gtacl and next command is LOGON username, OO expects to match string to send another command, t...
Submitted by
Lokesh
-
10 years ago
2
filter noreply-ish e-mail addresses
PCRE (PHP <7.3)
no reply e-mail addresses don't want to receive a reply. Unfortunately, not all no reply e-mail addresses are formatted like noreply@domain.tld, so in order to catch as many of them as possible I made this regular expression which matches many forms of no reply e-mail addresses.
Submitted by
anonymous
-
10 years ago
1
...
851
852
853
854
855
...
902
Community Library Entry
0
Regular Expression
ECMAScript (JavaScript)
/
^
(
[
+
]
{1}
[
1
-
9
]
{2,3}
[
.-
]
?
)?
[
0
-
9
]
{1,3}
(
[
.-
]
?
[
0
-
9
]
{2,3}
){3,6}
$
/
mug
Open regex in editor
Description
Match :
'+' at start.
' ' | '.' | '-' between number.
Between 7 and 24 numbers.
Work with HTML5 pattern.
Submitted by
valent1618
-
2 years ago