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)
URL Validation
.NET (C#)
Can be used to validate on URL's.
Submitted by
anonymous
-
6 months ago
2023-06-09 06:36
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
jiggl
PCRE (PHP <7.3)
toggl track to jira
Submitted by
anonymous
-
6 months ago
2023-06-07 10:53
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Youtube Video Id
.NET (C#)
Matches the video Id in Youtube URL.
Submitted by
CW
-
6 months ago
2023-06-05 02:15
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Wikipedia ISO 4217 (Currency Codes) table to C# enum
.NET (C#)
This converts the values in this) table to C# code. Example: pulic enum Iso4217 { /* output here */...
Submitted by
Diemaco
-
6 months ago
2023-05-31 08:14
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
for killerswim
.NET (C#)
a
Submitted by
anonymous
-
6 months ago
2023-05-29 23:19
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
string substitution in bash behaving differently from PCRE(PHP<7.3>
PCRE (PHP <7.3)
question about bash not returning expected results, the same result as this saved regex returns here
Submitted by
anonymous
-
6 months ago
2023-05-27 12:58
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
strip host port
PCRE (PHP <7.3)
removes port number from URL
Submitted by
pc
-
6 months ago
2023-05-26 15:55
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Proxy Matcher
PCRE (PHP <7.3)
Validate 1-223.0-255.0-255.0-255:1-65535
Submitted by
dev.tntd2k2
-
6 months ago
2023-05-23 13:54
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Replace namespaces in xpath with local-name
.NET (C#)
Replace namespaces in xpath with local-name
Submitted by
pvlzh
-
6 months ago
2023-05-23 08:29
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
latlonlatlon
PCRE (PHP <7.3)
gg
Submitted by
anonymous
-
6 months ago
2023-05-22 19:12
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
ENEL T5 Mono
PCRE (PHP <7.3)
T
Submitted by
anonymous
-
7 months ago
2023-05-11 13:35
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Phrase enclosed case insensitive
.NET (C#)
Match everything enclosed, say, a phrase, with case insensitive.
Submitted by
kosalanuwan
-
7 months ago
2023-05-09 15:42
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
all instagram regex
PCRE (PHP <7.3)
(?:https?:\/\/)?(?:www.)?instagram.com\/?([a-zA-Z0-9\.\\-]+)?\/([p]+)?([reel]+)?([tv]+)?([stories]+)?\/([a-zA-Z0-9\-\\.]+)\/?([0-9]+)?
Submitted by
threedot
-
7 months ago
2023-05-09 10:41
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
domain name with subdomains
PCRE (PHP <7.3)
should match any domain with one or more subdomains
Submitted by
Igor Tiulkanov
-
7 months ago
2023-05-05 14:09
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
date time validation
.NET (C#)
Validation of the date of time, taking into account the high year in the format date.ToString("yyMMdd-hh_mm_ss").
Submitted by
Oleksii Serikov (alex@neochrom.biz)
-
7 months ago
2023-05-04 16:18
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Example 1.1: Pet Name
PCRE (PHP <7.3)
Example used in slide 39
Submitted by
anonymous
-
7 months ago
2023-04-27 04:38
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
i++ in bash
PCRE (PHP <7.3)
asdf
Submitted by
anonymous
-
7 months ago
2023-04-22 07:33
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
SAP_ECTR_ID
PCRE (PHP <7.3)
Gets the base ID of the ECTR ID when using copy and paste.
Submitted by
Peter
-
8 months ago
2023-04-13 13:13
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Caltrans EA validation with optional XX-XXXXXX entry and C##-#????#
.NET (C#)
Checks validity of an EA number first two digits 01-12 followed by hyphen then a number from 0-4 and then 4 numbers or uppercase letters and ending in a 1 or 4 for example "05-1J7601". Adding a capital C to the beginning is also accepted "C05-1J7601", along with the entry of 2 X's hyphen and 6 X's ...
Submitted by
RDJ@Ct
-
8 months ago
2023-04-07 19:11
(Last modified 8 months ago)
2023-04-07 19:51
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Check Windows file name
.NET (C#)
Verifying Windows file names (without suffix)
Submitted by
anonymous
-
8 months ago
2023-04-06 01:43
1
2
3
4
5
...
466
myRegEx
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
.NET (C#)
@"
^
[
a
-
zA
-
Z
]
+
$
"
gm
Open regex in editor
Description
Loading markdown...
Submitted by
Avinash
-
a year ago
2022-11-19 04:21