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,340 community submitted regex patterns...
5
ipv6
PCRE (PHP <7.3)
Match an ipv6 address
Submitted by
Frusty
-
9 years ago
-1
Finds <font> tag
PCRE (PHP <7.3)
Useful for cleaning old html code from tags
Submitted by
anonymous
-
11 years ago
1
Number, comma and dot
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
11 years ago
(Last modified a year ago)
1
Phone numbers matcher
PCRE (PHP <7.3)
no description available
Submitted by
Oleksandr Sochka
-
11 years ago
2
Unicode url sanitising
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
11 years ago
2
Url with <a> (param) validation
PCRE (PHP <7.3)
https://www.google.com http://www.google.net/hello https://www.google. http://www.google./hello above url matching with given regex...
Submitted by
Duleep Dissanayaka
-
11 years ago
0
Matches when the string does not contain an exact word
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
1
Regex Formula for matching 2 letter Prefix URL's
PCRE (PHP <7.3)
I am trying to write a Regex formula that will match to all URL's with specifically 2 letter prefixes. I have a list of close to 1000 websites, and I need a formula that will collect data from any sites that start with "..".sporttu.com. For example, I want it to match to sites like ca.sporttu and ...
Submitted by
MikeRo
-
10 years ago
3
Fetch data between curly braces with plain text
PCRE (PHP <7.3)
This regex fetch only the data between content in curly braces (first occurrence, use preg_match_all in php, for all occurrences). This is useful for bad JSON files with wrong format or text between.
Submitted by
shakaran87
-
10 years ago
1
Find Word on A Text
PCRE (PHP <7.3)
This expression find a word in a text without limitation of "\b" statement
Submitted by
theShadow
-
10 years ago
4
Simple Linux File Absolute Path Tester
PCRE (PHP <7.3)
Match simple linux file absolute path as /usr/share/my-folder/helloworld.jpg
Submitted by
FLonpl6
-
10 years ago
4
Validate a Particular File Extension
PCRE (PHP <7.3)
Validates a File Path and makes sure the correct extension is at the end.
Submitted by
Andrew Morpurgo
-
10 years ago
2
Password Enforcement Pattern -- trailing pattern
PCRE (PHP <7.3)
This RegEx was posted on a Ruby site as one for enforcing password pattern. I added {8,32} to limit the length of the password, even though I realize no one has passwords longer than that. Rules: at least 1 digit, 1 special character (as defined), 1 upper case and 1 lower case character, between 8 ...
Submitted by
Dave Phillips
-
10 years ago
2
Select all chars before last backslash
PCRE (PHP <7.3)
For selecting paths without filename
Submitted by
Me!
-
10 years ago
3
^.*(\/Summary\/).*(chelaxe\.ru).*$
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
-3
Select a HTML table and all its innerHTML
PCRE (PHP <7.3)
no description available
Submitted by
@ixzy24
-
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
0
french phone number (locale format)
PCRE (PHP <7.3)
little matcher for french phone number in locale format (example: 0231348228)
Submitted by
Nolwennig
-
10 years ago
-2
posix
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
0
Fully Qualified Domain Name FQDN
PCRE (PHP <7.3)
Fully qualified domain name validation
Submitted by
ximbs
-
9 years ago
1
...
5
6
7
8
9
...
467
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