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...
2
Remove multiple white spaces between words
PCRE (PHP <7.3)
Remove multiple white spaces between words and replace it with the char of your choosing.
Submitted by
binary_fm
-
8 years ago
2
URL extractor
PCRE (PHP <7.3)
Extract parts of an URL.
Submitted by
Gilles Marchand
-
8 years ago
2
RewriteMatch into subfolder
PCRE (PHP <7.3)
RegEx for an .htaccess rewrite into a subfolder without provoking a 'too many redirects' error
Submitted by
Nils B.
-
8 years ago
2
Password (4 Classes)
Python
1 Uppercase 1 lower case 1 number 1 not a number or letter
Submitted by
anonymous
-
8 years ago
2
paramaterised sql like expressions for sybase
PCRE (PHP <7.3)
no description available
Submitted by
robessog
-
8 years ago
2
multiple sql like expressions
PCRE (PHP <7.3)
no description available
Submitted by
robessog
-
8 years ago
2
search for a regex excluding a word
PCRE (PHP <7.3)
^((?!proposed_).)*((project|task)_details) matches: project_details task_details...
Submitted by
aymon
-
8 years ago
2
Delete Blank Lines
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2
IPv6 detection
Python
It's too large to match with all which seems like an IPv6. It's not perfect, but it's detects more valid IPv6 than some others regex.
Submitted by
Ajabep
-
8 years ago
2
Matches human genomic coordinates
PCRE (PHP <7.3)
This expression matches human genomic coordinates, similat to those being used by genome browsers (e.g. the UCSC Genome Browser). It can match: chromosome, chromosome start, chromosome start end, chromosome start end reference sequence, chromosome start end reference sequence alternative sequence. T...
Submitted by
Panagiotis Moulos
-
8 years ago
2
Escape regex meta characters
ECMAScript (JavaScript)
This expression escapes characters, which have a special meaning in regex, like .?[]/ and so on. Use it to transform a string that you want to use literally in another regex.
Submitted by
Florian Andresen
-
8 years ago
2
Console arguments handling
PCRE (PHP <7.3)
Splitting string on parts. Able quoted strings and escaped chars. Without optimizations. command arg1 "string arg \"qoute\" demo" arg3
Submitted by
anonymous
-
8 years ago
2
match HTML-safe strings with at least one alphanumeric character
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
2
Email combo to username combo
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2
negative lookahead
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2
Find IP
PCRE (PHP <7.3)
Regex to match an IPv4 address at beginning
Submitted by
edoz90
-
8 years ago
2
URL MATCH
PCRE (PHP <7.3)
URL MATCH
Submitted by
activesatan
-
8 years ago
2
Number or Range
ECMAScript (JavaScript)
Allows either a number (e.g. "1", "1.01") or a range (e.g. "1-2", "1.0 - 1.3"). Also allows whitespace on either side of the numbers.
Submitted by
Mark Newcomb
-
8 years ago
2
.*(\d+).* Selects last number
Python
no description available
Submitted by
anonymous
-
8 years ago
2
Test numeric input to be between 0,01 and 100,00
ECMAScript (JavaScript)
Tests a numeric input to be between 0,00 < input <= 100,00. Decimals are optional but have at max 2 places.
Submitted by
Torsten Walter
-
8 years ago
1
...
30
31
32
33
34
...
902
Community Library Entry
1
Regular Expression
ECMAScript (JavaScript)
/
(
https
?
:
\/\/
)
(
(?:
[
-a
-
zA
-
Z0
-
9@:%._+~#=
]
+
)
\.
)?
(
[
-a
-
zA
-
Z0
-
9@:%._+~#=
]
{2,256}
\.
[
a
-
z
]
{2,6}
\b
|
localhost
(?:
\:
\d
{1,5}
)?
)
(
\/
[
\w
.-
]
*
)*
(
\?
[
\w
\-
._~!*'(),%=&+
]
*
)?
(
$
|
\#
.
*
|
\?
.
*
)?
/
gm
Open regex in editor
Description
Match a URL and capture its parts. Please suggest your improvements.
Submitted by
Lamer217
-
10 months ago