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...
4
C# Regex Extract/Match Nested HTML Elements/Tags
.NET 7.0 (C#)
With this C# regex, you can easily match/Parse Nested HTML tags. Example input: ...
Submitted by
w4po
-
3 years ago
(Last modified a year ago)
5
Hello world !
ECMAScript (JavaScript)
no description available
Submitted by
Fedir RYKHTIK
-
11 years ago
5
Youtube ID matcher
ECMAScript (JavaScript)
Credit: https://gist.github.com/FinalAngel/1876898
Submitted by
anonymous
-
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
Accept url without www
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
11 years ago
5
RegEx to validate oAuth 2.0 redirect_uri
ECMAScript (JavaScript)
A simple RegEx rule which should validate redirect_uri for oAuth2
Submitted by
Vlad Miller
-
10 years ago
5
Find All Python imports
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
5
Separate words (works with spaces, dashes and underscores)
PCRE (PHP <7.3)
no description available
Submitted by
marcoslhc
-
10 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
5
relative to absolute
PCRE (PHP <7.3)
relative to absolute
Submitted by
xp_prg
-
10 years ago
5
URL
PCRE (PHP <7.3)
URL Description from Dr. M. G. @ Brookes
Submitted by
anonymous
-
10 years ago
5
parsing CSV file
PCRE (PHP <7.3)
It correctly handles simple values, empty values, and quoted values with commas inside.
Submitted by
Viktor Lova aka nsinreal
-
10 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
5
Numeric values greater than zero with decimal
PCRE (PHP <7.3)
Pattern that only accept numeric value and greater than zero with up to decimal places ( you can change the decimal places just replace {1,2} depend on how many decimal places you like
Submitted by
Eugene To
-
9 years ago
5
MAC address
ECMAScript (JavaScript)
a mac address separated by dashes or colons.
Submitted by
anonymous
-
9 years ago
5
Latitude,Longitude fetcher
PCRE (PHP <7.3)
Useful to work with GoogleMap API.
Submitted by
anonymous
-
9 years ago
5
youtube url match
ECMAScript (JavaScript)
extract video id, index, play list id from youtube URL
Submitted by
anonymous
-
9 years ago
5
Password strength
ECMAScript (JavaScript)
Regular expression for password validation Rules: 8-120 chars no spaces must contain at least one a-z char must contain at least one A-Z char...
Submitted by
@razvanz
-
9 years ago
5
ipv6 Validation
PCRE (PHP <7.3)
Handle all condition for ipv6 example: 1) FE80::8329 2) FE80::FFFF:8329 3) FE80::B3FF:FFFF:8329 4) FE80::0202:B3FF:FFFF:8329...
Submitted by
Lim Yew Teck, Nicholas
-
9 years ago
5
Variable name of code
PCRE (PHP <7.3)
To get a variable name from a source code: The variable name is before the '=' (equal sign) This is the way to detect. Problem: Only 1 variable can get from 1 line. Unfortunately, this can get variable between after "//" and before ";" too. I made this for fake script debugger. Just get variable f...
Submitted by
Setsuna
-
9 years ago
1
...
892
893
894
895
896
...
902
Community Library Entry
0
Regular Expression
PCRE2 (PHP >=7.3)
/
r'
\d
+
(?<!
[
.,
]
)
[
,|.
]
\d
{2}
(?!
[
.,
]
\d
)
'
/
gm
Open regex in editor
Description
regex to find total payment
Submitted by
anonymous
-
2 years ago