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 9,320 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regex Colon Code For Emoji
PCRE (PHP <7.3)
Groups the ID, and finds the whole colon code
Submitted by
ZackiBoiz
-
10 months ago
2023-02-10 22:40
(Last modified 10 months ago)
2023-02-10 22:43
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
URL Validator (HTTP and HTTPS)
PCRE (PHP <7.3)
Validate one URL HTTP and HTTPS
Submitted by
Joaquim
-
10 months ago
2023-02-09 03:27
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Mysite
PCRE (PHP <7.3)
Hello
Submitted by
anonymous
-
10 months ago
2023-02-09 03:17
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Parse getopt options from a Bash script
PCRE (PHP <7.3)
This will parse the parameters/arguments that a Bash script when it uses getopt(s). Groups: name,short,long,while Example cases: ...
Submitted by
Spyingwind
-
10 months ago
2023-02-08 21:30
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
MBI Regex
PCRE (PHP <7.3)
validates against the MBI format published by CDC
Submitted by
i410hlr
-
10 months ago
2023-02-07 13:28
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Parse arguments
PCRE (PHP <7.3)
Parse arguments
Submitted by
Ofir Yariv
-
10 months ago
2023-02-07 12:36
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Phone number for all countries
.NET (C#)
Phone number for all countries. Valid symbols: ( ), -, whitespace
Submitted by
Alexander Smirnov
-
10 months ago
2023-02-07 07:33
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
15.02.2022 15:00:00
.NET (C#)
15.02.2022 15:00:00
Submitted by
anonymous
-
10 months ago
2023-02-06 12:57
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Minimum 10 herhangi dijit
.NET (C#)
Minimum 10 herhangi dijit
Submitted by
anonymous
-
10 months ago
2023-02-06 12:55
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
USD
.NET (C#)
USD
Submitted by
anonymous
-
10 months ago
2023-02-06 12:53
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
01 Jan 2022 Mon 01:02:03
.NET (C#)
01 Jan 2022 Mon 01:02:03
Submitted by
anonymous
-
10 months ago
2023-02-06 12:52
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
^[A-Z,a-z,\-, ,\&]+$
.NET (C#)
Koray Bilgi, Text-Regex
Submitted by
anonymous
-
10 months ago
2023-02-06 12:47
-1
0 upvotes, 1 downvotes (score 0%) (You must be signed in to vote)
MMM DDD YYYY
.NET (C#)
FEB MON 2023
Submitted by
anonymous
-
10 months ago
2023-02-06 12:42
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
User-Agent
PCRE (PHP <7.3)
Parser
Submitted by
sn3kdev
-
10 months ago
2023-02-02 21:06
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Extract any http https and any url form
PCRE (PHP <7.3)
This will help you to extract any URL inside your text
Submitted by
Abdullah Alweheid
-
10 months ago
2023-01-31 22:18
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Parcing2
PCRE (PHP <7.3)
aa
Submitted by
anonymous
-
10 months ago
2023-01-31 20:03
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
trim phone number
PCRE (PHP <7.3)
trim phone number
Submitted by
anonymous
-
10 months ago
2023-01-31 12:39
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Match HTML comments with nested comments
PCRE (PHP <7.3)
Even if this is not valid HTML, it's more to understand the concept of recursion in patterns. It was an answer to a Stack overflow question: https://stackoverflow.com/questions/75282404/remove-comments-from-some-generated-html-which-can-be-invalid-with-nested-commen The idea is to use PCRE's recur...
Submitted by
Patrick Janser
-
10 months ago
2023-01-30 13:50
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Search Trailing Commas
PCRE (PHP <7.3)
Regex used for finding trailing commas. Use for troubleshooting PHP 7.2 Codes
Submitted by
anonymous
-
10 months ago
2023-01-30 11:13
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Match IPv4 Valid
.NET (C#)
expression to capture valid IP
Submitted by
anonymous
-
10 months ago
2023-01-27 19:38
1
2
3
4
5
6
7
...
466
Get h1-6 tag
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
.NET (C#)
@"
<
(
h
[
1
-
6
]
){1}
(?:
.
*
?
)?
>
(
.
*
?
)
</h
[
1
-
6
]
>
"
g
Open regex in editor
Description
Loading markdown...
Submitted by
OlegBel
-
a year ago
2023-01-17 14:18