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#
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
4
Function Declaration / Expression
ECMAScript (JavaScript)
matches both function declarations and expressions in javascript. ex. function name () {...} || function () {}
Submitted by
Ja Superior
-
9 years ago
4
DNS hostname well-formedness validation
PCRE (PHP <7.3)
Validates that a DNS hostname is well-formed only. You will still need to check that the overall length of the hostname, including the implied trailing "." (if not present), does not exceed 255 bytes.
Submitted by
Jeff Walter
-
9 years ago
4
MasterCard validate 2017
PCRE (PHP <7.3)
Match a MasterCard with new range for 2017: 51-55 and 2221-2720 @incarnated
Submitted by
John C
-
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
UK Postcode
ECMAScript (JavaScript)
no description available
Submitted by
msyed
-
9 years ago
4
html tags
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
4
replace-last-comma with semicolon
PCRE (PHP <7.3)
replace-last-comma with semicolon similar to http://stackoverflow.com/questions/3829483/how-to-replace-last-occurrence-of-characters-in-a-string-using-javascript
Submitted by
Michael Freidgeim
-
9 years ago
4
Date yyyy/mm/dd
PCRE (PHP <7.3)
Regex following "ISO 8601" without hour : allowing only month 1 to 12, the day of 1 to 31 for the months of 31 days, the months from 1 to 30 for the months of 30 days, the day of 1 to 28 for February, and the day from 1 to 29 for February of leap years
Submitted by
Sara DULMAR
-
9 years ago
4
Get image tag attributes
PCRE (PHP <7.3)
no description available
Submitted by
Agustín Bouillet
-
9 years ago
4
Validate Argentinian postal code
PCRE (PHP <7.3)
Validates CPA (Código Postal Argentino, spanish for Argentinian Postal Code).
Submitted by
Agustín Bouillet
-
9 years ago
4
Validates argentinian postal code
PCRE (PHP <7.3)
Validates the two valid postal codes in Argentina
Submitted by
Agustín Bouillet
-
9 years ago
4
,(?=([^\"]*\"[^\"]*\")*(?![^\"]*\"))
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
4
remove blank keys in query string
PCRE (PHP <7.3)
looks for blank keys in the query string and remove it, in order to make shorter request.
Submitted by
M.Nizam
-
8 years ago
4
Credit Card Validation - MasterCard, Visa, Amex, Discover
PCRE (PHP <7.3)
MasterCard - ^5[1-5]\d+ Visa - ^4\d+ Amex - ^3[47]\d+ Discover - 6011|65|64...
Submitted by
Eric Foster
-
8 years ago
4
Campos Decimais (pt_br)
ECMAScript (JavaScript)
Funciona para campos decimais para moeda nacional brasileira. Aceita números inteiros, separação por milhar e a separação decimal.
Submitted by
Murilo C. Cumerlatto
-
8 years ago
4
INI Parser
PCRE (PHP <7.3)
Created for purpose of reading an INI file in C# applications. Supports comments and comment escape characters. I plan to add more escape characters (such as \=). s - Section scp - Section Comment Prefix sc - Section Comment...
Submitted by
Raxdiam
-
5 years ago
4
BEST simple mail regex validator
ECMAScript (JavaScript)
VALIDATE ALL WOLRD MAIL RULES Very simple expression Less than 140 caracters. Validate on SonarQube typescript, javascript, angular rules ...
Submitted by
Ayslan Johnson (ayslanjohnson@gmail.com)
-
7 years ago
4
CloudFlare
PCRE2 (PHP >=7.3)
Cloud Flare
Submitted by
anonymous
-
3 years ago
1
...
891
892
893
894
895
...
902
Community Library Entry
0
Regular Expression
PCRE2 (PHP >=7.3)
/
[
\s
]
*
(
[
\/
+
\s\w
@'
\,\.
()
\-\*\-\>\<\_\"
]
*
)?
[
\n
]
*
UFUNCTION
[
(
]
(
[
\w
<>
\s
\(\)\=\,\"\|
]
*
|
\n
]
*
)
[
\)
]
\n\s
(
virtual
)*
\s
*
(
static
)*
\s
*
(
\w
+
\&
?
\*
?
)
\s
(
\w
+
)
[
(
]
(
[
\w
<>
\s
,&
\*
]
*
|
\n
]
*
)
[
)
]
[
\s
]
*
(
[
const
]
*
)
/
gm
Open regex in editor
Description
Breaks any UFUNCTION into parts
Submitted by
anonymous
-
2 years ago