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,020 community submitted regex patterns...
4
vowel words
ECMAScript (JavaScript)
([!-\~]aeiou)
Submitted by
Ipsita Mohanty
-
9 years ago
4
Timestamp
PCRE (PHP <7.3)
12.04.1975T03:02:00.88 With milliseconds and T seperator. Excludes most invalid dates, except 30/31ths of month, leap years/february heaving only 29/28.
Submitted by
anonymous
-
9 years ago
4
Skype ConversationText Extraction
PCRE (PHP <7.3)
When you copy a skype conversation and paste it in a text area then it includes timestamps, User's name and whether or not the message had been edited. This matches all of those in seperate groups for easy substitution
Submitted by
Zalatos
-
9 years ago
4
Get image tag attributes
PCRE (PHP <7.3)
no description available
Submitted by
AgustÃn Bouillet
-
9 years ago
5
Youtube ID matcher
ECMAScript (JavaScript)
Credit: https://gist.github.com/FinalAngel/1876898
Submitted by
anonymous
-
11 years ago
5
MAC address
ECMAScript (JavaScript)
a mac address separated by dashes or colons.
Submitted by
anonymous
-
9 years ago
5
Accept url without www
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
11 years ago
5
URL
PCRE (PHP <7.3)
URL Description from Dr. M. G. @ Brookes
Submitted by
anonymous
-
10 years ago
5
HTML img
ECMAScript (JavaScript)
Grabs all HTML tags
Submitted by
Pirate11
-
9 years ago
5
password 1upper 1lower 1number 1specialcharater
ECMAScript (JavaScript)
fjk@1Qaa$
Submitted by
Anuswadh
-
9 years ago
5
Two or more whitespace
PCRE (PHP <7.3)
Reeplace all two or more whitespace in string with a single chararter(ej. one whitespace)
Submitted by
Lanxe
-
10 years ago
6
json
PCRE (PHP <7.3)
{1:aa,2:bb,3:"aa:bb"}
Submitted by
suat & umut
-
10 years ago
6
Simple Number
ECMAScript (JavaScript)
Verifies Number is a negative/positive number. Number may be a decimal, but if it is, it requires at least one number before and after the decimal place. Decimal numbers may also be negative or positive. Only 1 decimal place is allowed.
Submitted by
David P Smith
-
9 years ago
6
Matching balanced parens, brackets, and braces
PCRE (PHP <7.3)
no description available
Submitted by
Noah Luck Easterly
-
11 years ago
6
Username:Password
PCRE (PHP <7.3)
Regex For finding username:password
Submitted by
Ghost
-
9 years ago
5
Hello world !
ECMAScript (JavaScript)
no description available
Submitted by
Fedir RYKHTIK
-
11 years ago
5
All href in a tag
PCRE (PHP <7.3)
Find all href in a tag
Submitted by
Miron Yanovskiy
-
11 years ago
5
FIlename sanitization regular expression
PCRE (PHP <7.3)
Useful for filename sanitization. Matches invalid filename characters. Can be used in preg_replace() calls.
Submitted by
FractalizeR@yandex.ru
-
9 years ago
6
reg Ex number range check
PCRE (PHP <7.3)
Hi, I am trying to get a reg ex that will test a number range and also allow european number convention like , for decimal point. I have this one for range check - ^(4-9{3}|1-9{4,5}|12{6}|30-4{5}|3500000)$ and I have this one for allow comma ^\s?([\d\.]+(\,\d{1,2})?|\,\d{1,2})\s$ but I need a comb...
Submitted by
TimJ
-
11 years ago
3
Match quoted strings, ignoring escaped quotes
PCRE (PHP <7.3)
Matches single or double quoted strings, and ignores backslash-escaped quotes within the string.
Submitted by
Maddingue
-
11 years ago
1
...
885
886
887
888
889
...
901
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