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,000 community submitted regex patterns...
30
Cron schedule
Recommended
PCRE (PHP <7.3)
Validate cron lines (even the ones commented out)
Submitted by
anonymous
-
8 years ago
3
phone
Python
matches: + example: +52 33 3884 7720 +1 770 343 5788
Submitted by
miqui
-
10 years ago
8
Extract Protocol, URL, URL Path, get parameters and hash from URI
Python
This is simplified from my last submission.
Submitted by
Dale O'Brien
-
10 years ago
12
Full name (Turkish)
ECMAScript (JavaScript)
Matches case insensitive first name, optional unlimited number of middle names and last name separated with space format. Replaced \w with explicit char range for Turkish support. (Äž accepted as first char not to over complex)
Submitted by
CKK
-
10 years ago
27
Parsing browser User Agents
PCRE (PHP <7.3)
From a (fairly large) list of User Agent strings, extract the OS, Browser, and Device Type.
Submitted by
OnlineCop
-
10 years ago
(Last modified a year ago)
17
Capture comma separated numbers
PCRE (PHP <7.3)
Capture comma separated numbers, no matter if there are spaces before or after the commas.
Submitted by
Fernando Nunes
-
9 years ago
18
Date Regex(DD/MM/yyyy)
PCRE (PHP <7.3)
no description available
Submitted by
alcaamado
-
9 years ago
15
IPv4
PCRE (PHP <7.3)
no description available
Submitted by
robwa
-
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
19
Email (RFC2822)
Recommended
ECMAScript (JavaScript)
Email address compliant with RFC2822
Submitted by
Jago
-
9 years ago
16
Hashtag
ECMAScript (JavaScript)
The secret of the Twitterverse.
Submitted by
Joogl
-
10 years ago
4
url
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 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
json
PCRE (PHP <7.3)
{1:aa,2:bb,3:"aa:bb"}
Submitted by
suat & umut
-
10 years ago
13
Match Gmail Email
Recommended
PCRE (PHP <7.3)
Match Gmail Email
Submitted by
Óscar EnrÃquez
-
10 years ago
11
Address Check Validation
PCRE (PHP <7.3)
Check for true or false street address format
Submitted by
Dilip Borad
-
11 years ago
8
Validate Base64 single-line string
PCRE (PHP <7.3)
no description available
Submitted by
ka.
-
11 years ago
12
Remove Special Ascii Characters from unicode String
PCRE (PHP <7.3)
By Using this string you can just remove ascii special characters from a unicode string characters like ♥♥♥♥ ▓▒ and other non unicode letters.
Submitted by
Hummad Hassan
-
10 years ago
0
utf-8 language
PCRE (PHP <7.3)
this regex is support for all languages
Submitted by
Jigar Dhaduk
-
9 years ago
12
Username with "_" "-"
ECMAScript (JavaScript)
no description available
Submitted by
Gianvy
-
9 years ago
1
2
3
4
5
...
900
Community Library Entry
1
Regular Expression
ECMAScript (JavaScript)
/
(?<sign>
[
+-
]
)?
(?<int>
\d
(?:
[
\d
_
]
*
\d
+
)?
)
(?:
(?:
\s
*
[
,.
]
\s
*
)
(?<decimal>
\d
(?:
[
\d
_
]
*
\d
+
)?
)
)?
/
g
Open regex in editor
Description
Integers
Decimal value starts by comas or dots
Handle spaces, "_" characters
Signed or not
--> Visit
https://flymeth.net
to view my works
Submitted by
anonymous
-
6 months ago