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 9,560 community submitted regex patterns...
2
Credit Card (Master/Visa)
PCRE (PHP <7.3)
Searches for credit card numbers from MasterCard or visa
Submitted by
SamPad
-
9 years ago
2
Match only first occurrence of word in a line.
PCRE (PHP <7.3)
Match only first occurrence of word in a line.
Submitted by
Vivek Shah
-
9 years ago
2
Apache ErrorLog Parsing
PCRE (PHP <7.3)
Parse Apache Error Log Line (in default format). Example: [Wed Jun 01 20:05:21.194671 2016] [core:error] [pid 40699] [client ::1:64519] PHP Parse error: syntax error, unexpected '$t' (T_VARIABLE) in /Projects/trunk/code/php/test.php on line 16
Submitted by
garys
-
9 years ago
2
days_and_weeks
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2
Email validation
PCRE (PHP <7.3)
It validates an email address with alias
Submitted by
anonymous
-
8 years ago
2
Date of Birth
PCRE (PHP <7.3)
with Leap Year support (dd/MM/yyyy)
Submitted by
gdZeus (uploaded by limker)
-
8 years ago
2
8 Digits Password
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2
new anchor
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2
Match directory path
PCRE (PHP <7.3)
match with or without prevailing/trailing slashes
Submitted by
@zakiaziz
-
8 years ago
2
httplinkresolver
PCRE (PHP <7.3)
get special tag contains html link
Submitted by
okeskiner
-
8 years ago
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
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
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
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
Email combo to username combo
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
...
17
18
19
20
21
...
478
Community Library Entry
0
Regular Expression
.NET 7.0 (C#)
@"
^
(?=
(?<http>
(?:
https
?
:
\/\/
){1}
(?:
www
\.
)?
)?
)
(?
(?=
\k<http>
?
(?<ipaddr>
(?:
\d
{1,3}
\.
){3}
\d
{1,3}
(?:
\:
\d
{1,5}
)?
)
)
\k<http>
?
\k<ipaddr>
(?:
\.
[
\w
]
{1,9}
)?
|
\k<http>
(?:
[
\w
]
\.
?
){1,255}
\.
[
\w
]
{1,9}
)
(?:
\/
.
*
)?
$
"
gm
Open regex in editor
Description
Can be used to validate on URL's.
Submitted by
anonymous
-
a year ago