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 3,460 community submitted regex patterns...
7
21 upvotes, 14 downvotes (score 43.6%) (You must be signed in to vote)
if, else if, else condtion match
ECMAScript (JavaScript)
matches full if condition statment eg: if(condition){ ... } else if(condition){ ... }else{...
Submitted by
Ivan Jakesevic
-
9 years ago
2014-10-20 13:50
7
22 upvotes, 15 downvotes (score 43.5%) (You must be signed in to vote)
Match text (not within html tag)
ECMAScript (JavaScript)
no description available
Submitted by
Moistly
-
8 years ago
2015-05-12 12:38
5
9 upvotes, 4 downvotes (score 42.4%) (You must be signed in to vote)
Hello world !
ECMAScript (JavaScript)
no description available
Submitted by
Fedir RYKHTIK
-
10 years ago
2013-09-10 09:01
6
26 upvotes, 20 downvotes (score 42.2%) (You must be signed in to vote)
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
-
8 years ago
2015-10-20 16:06
5
11 upvotes, 6 downvotes (score 41.3%) (You must be signed in to vote)
Accept url without www
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
10 years ago
2014-01-10 05:30
5
11 upvotes, 6 downvotes (score 41.3%) (You must be signed in to vote)
HTML img
ECMAScript (JavaScript)
Grabs all HTML tags
Submitted by
Pirate11
-
8 years ago
2015-10-17 05:48
5
11 upvotes, 6 downvotes (score 41.3%) (You must be signed in to vote)
password 1upper 1lower 1number 1specialcharater
ECMAScript (JavaScript)
fjk@1Qaa$
Submitted by
Anuswadh
-
8 years ago
2016-01-23 03:48
5
12 upvotes, 7 downvotes (score 41%) (You must be signed in to vote)
Youtube ID matcher
ECMAScript (JavaScript)
Credit: https://gist.github.com/FinalAngel/1876898
Submitted by
anonymous
-
10 years ago
2013-09-29 00:48
5
12 upvotes, 7 downvotes (score 41%) (You must be signed in to vote)
MAC address
ECMAScript (JavaScript)
a mac address separated by dashes or colons.
Submitted by
anonymous
-
8 years ago
2015-07-31 17:12
4
6 upvotes, 2 downvotes (score 40.9%) (You must be signed in to vote)
Repeated words (JS)
ECMAScript (JavaScript)
no description available
Submitted by
paconaranjo
-
9 years ago
2014-05-20 01:44
4
6 upvotes, 2 downvotes (score 40.9%) (You must be signed in to vote)
url matching
ECMAScript (JavaScript)
supports all major protocols
Submitted by
matheus silva
-
9 years ago
2015-01-16 07:06
4
6 upvotes, 2 downvotes (score 40.9%) (You must be signed in to vote)
vowel words
ECMAScript (JavaScript)
([!-\~]aeiou)
Submitted by
Ipsita Mohanty
-
8 years ago
2015-12-29 07:14
4
6 upvotes, 2 downvotes (score 40.9%) (You must be signed in to vote)
North American Phone Number
ECMAScript (JavaScript)
Validate North American phone numbers with capture groups for the Area Code, Exchange Code, Line Number, and Extension.
Submitted by
AaronBoots
-
7 years ago
2017-02-28 17:31
4
26 upvotes, 22 downvotes (score 40.3%) (You must be signed in to vote)
url
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
2015-07-23 21:43
4
7 upvotes, 3 downvotes (score 39.7%) (You must be signed in to vote)
Mobile phone russia
ECMAScript (JavaScript)
Submitted by
Johhny
-
8 years ago
2015-11-11 11:10
4
8 upvotes, 4 downvotes (score 39.1%) (You must be signed in to vote)
Match Brackets and anything inside
ECMAScript (JavaScript)
no description available
Submitted by
andreayang
-
10 years ago
2013-11-19 18:43
4
9 upvotes, 5 downvotes (score 38.8%) (You must be signed in to vote)
Capturing items from multiple lists using a single regex
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
2014-10-21 15:19
4
9 upvotes, 5 downvotes (score 38.8%) (You must be signed in to vote)
Full e-mail validator
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
2015-08-03 12:07
3
4 upvotes, 1 downvotes (score 37.6%) (You must be signed in to vote)
Extract asp label
ECMAScript (JavaScript)
I am trying to extract the asp:label syntax using Regex but I am getting some error can some one help me
Submitted by
anonymous
-
10 years ago
2013-12-02 05:53
3
4 upvotes, 1 downvotes (score 37.6%) (You must be signed in to vote)
Outside Quotes
ECMAScript (JavaScript)
match any string outside of single or double quotes
Submitted by
anonymous
-
10 years ago
2014-03-08 11:13
1
2
3
4
5
6
7
8
...
173
篩選MP Log Day
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
.NET (C#)
@"
(?<=
Day:
)
\s
+
\(
(
.
+
)
\)
\s
+
(?=
Time:
)
"
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
a year ago
2022-04-14 15:29