Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Social
Join the Discord community!
Follow me on twitter!
Send me an email
Donate
Donate
Donate through Paypal
Become a Github Sponsor
Info
Info
Find out what's new!
RegEx101 Wiki
Report bugs or make suggestions
What's new?
Loading content...
Close
Regex Editor
Regex Editor
Community Patterns
Community Patterns
Account
Account
Regex Quiz
Regex Quiz
Settings
Settings
Live Help
Live Help
Get help on Discord
Get help on IRC
Order By
Most Recent
Highest Score
Lowest Score
Most upvotes
Most downvotes
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET (C#)
Rust
Sponsors
Community Patterns
Search among 5,940 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Trim Full Terrestrial Channel
PCRE2 (PHP >=7.3)
.
Submitted by
anonymous
-
a year ago
2022-10-26 10:46
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regex range price
ECMAScript (JavaScript)
Regex range price
Submitted by
anonymous
-
a year ago
2022-10-27 10:35
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular expression for positive number with 2 decimals used for displaying money
Java 8
I think from time to time we all need a regular expression for displaying numbers with 2 decimals for displaying money of various currencies in the world. This regex should only allow 1 dot or comma as a decimal separator. And only allow positive numbers and the numbers can't begin with a 0. Goals:...
Submitted by
Remzi Cavdar
-
a year ago
2022-10-27 17:25
(Last modified 5 months ago)
2023-07-20 05:54
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Laugh Match
PCRE2 (PHP >=7.3)
match laugh texts
Submitted by
cool66
-
a year ago
2022-10-28 01:49
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
printf C99
PCRE2 (PHP >=7.3)
A regex that matches the printf C99 standard
Submitted by
renardfute
-
a year ago
2022-10-28 08:43
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
convert number to Lakh format
PCRE2 (PHP >=7.3)
converts a number to Lakh format, e.g: 123456789 == 12,34,56,789 breakdown: twelve crore thirty-four lakh fifty-six thousand seven hundred and eighty-nine
Submitted by
anonymous
-
a year ago
2022-10-28 10:48
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
regex dont look pls
PCRE2 (PHP >=7.3)
asdfasdfasdg
Submitted by
anonymous
-
a year ago
2022-10-28 13:50
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Time Regex
ECMAScript (JavaScript)
time
Submitted by
12944qwerty
-
a year ago
2022-10-28 23:14
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Date validation in yyyy-mm-dd format
ECMAScript (JavaScript)
Comes with choice of four separators
Submitted by
Regular-Expressions.info
-
a year ago
2022-10-29 19:03
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
odev 1
PCRE2 (PHP >=7.3)
odev
Submitted by
anonymous
-
a year ago
2022-10-30 00:25
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
test
Java 8
test
Submitted by
anonymous
-
a year ago
2022-10-31 10:58
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
P4 file info
.NET (C#)
just p4 file command output match
Submitted by
anonymous
-
a year ago
2022-11-01 06:37
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Remove useless zeroes.
ECMAScript (JavaScript)
Replaces the string with a version that doesn't have the zeroes at the beginning or end of the string.
Submitted by
anonymous
-
a year ago
2022-11-01 09:07
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
kiểm tra họ tên
PCRE2 (PHP >=7.3)
kiểm tra họ tên
Submitted by
anonymous
-
a year ago
2022-11-02 04:13
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
CAN regex
.NET (C#)
n
Submitted by
anonymous
-
a year ago
2022-11-02 15:00
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
ITIN
PCRE2 (PHP >=7.3)
ITIN regex
Submitted by
anonymous
-
a year ago
2022-11-02 16:50
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
BF / Trade Channel
PCRE2 (PHP >=7.3)
Extract trade_channel from branded_foods
Submitted by
anonymous
-
a year ago
2022-11-02 17:56
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Avoid Unnecessary Whitespaces
PCRE2 (PHP >=7.3)
Avoid unnecessary whitespaces. Note: This uses substitution Click "Open regex in editor" to see the magic!
Submitted by
cool66
-
a year ago
2022-11-02 18:00
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Best Facebook video ID regex
ECMAScript (JavaScript)
Best Facebook video ID regex
Submitted by
Vikas Kapadiya
-
a year ago
2022-11-02 18:03
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
BF / Trade Channel / One in each line
PCRE2 (PHP >=7.3)
BF > Trade Channel > One in each line
Submitted by
anonymous
-
a year ago
2022-11-02 18:09
1
...
222
223
224
225
226
227
228
...
297
Comprobar fecha
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
ECMAScript (JavaScript)
/
^
(?:
3
[
01
]
|
[
12
]
[
0
-
9
]
|
0
?
[
1
-
9
]
)
(
[
\-
/.
]
)
(
0
?
[
1
-
9
]
|
1
[
1
-
2
]
)
\1
\d
{4}
$
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
2 years ago
2022-05-16 07:44