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 17,400 community submitted regex patterns...
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Files
PCRE2 (PHP >=7.3)
Files
Submitted by
anonymous
-
25 days ago
2023-11-06 08:12
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Folders
PCRE2 (PHP >=7.3)
Folders
Submitted by
anonymous
-
25 days ago
2023-11-06 08:00
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Match morse code
ECMAScript (JavaScript)
This matches morse code input and leaves word break spaces
Submitted by
Ember
-
25 days ago
2023-11-06 04:53
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
instagram url
Python
gets the url instagram
Submitted by
samuel06santos
-
25 days ago
2023-11-05 16:11
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Simple path detector
PCRE2 (PHP >=7.3)
Detect paths under Windows format.
Submitted by
._thunderstrike
-
a month ago
2023-11-05 12:48
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Remove ANSI Escape Code
Python
Remove ANSI Escape Code
Submitted by
diaogong
-
a month ago
2023-11-05 12:19
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Domain name validator
PCRE2 (PHP >=7.3)
Validates domain names. Support https:// or http:// prefix.
Submitted by
._thunderstrike
-
a month ago
2023-11-05 10:47
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
blek! File ResourceD resource regex
PCRE2 (PHP >=7.3)
Used in https://git.blek.codes/blek/bfile
Submitted by
anonymous
-
a month ago
2023-11-05 02:11
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Rust type-like ident casing
Rust
Matches built-in primitives and identifiers with casing conventionally used for type/constant names.
Submitted by
Neel Yadav
-
a month ago
2023-11-04 19:35
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Initializing identifiers
.NET (C#)
Initializing identifiers
Submitted by
anonymous
-
a month ago
2023-11-04 12:02
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
force download file (HTML5)
PCRE2 (PHP >=7.3)
This regex is written for a Joomla plugin. This REGEX force to DOWNLOAD à PDF file instead of showing PDF in browser
Submitted by
Sébastien LHUILLIER
-
a month ago
2023-11-03 16:33
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Glyph name Bulgarian local form
PCRE2 (PHP >=7.3)
replace .bgr with cyr_BGR in replace string
Submitted by
anonymous
-
a month ago
2023-11-03 11:10
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Quartz .NET Cron Schedule Validation
PCRE2 (PHP >=7.3)
Matches a list of cron expressions which are valid in the Quartz .NET library Quartz Net Cron Expression
Submitted by
Michael Robertson
-
a month ago
2023-11-03 04:14
(Last modified a month ago)
2023-11-03 04:19
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Email Regex
PCRE2 (PHP >=7.3)
Email address: RFC 2822 Format Matches a normal email address. Does not check the top-level domain. Copied from: https://stackoverflow.com/a/16168103/4640611
Submitted by
anonymous
-
a month ago
2023-11-02 11:34
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
convert any youtube video link to an embed in iframe
PCRE2 (PHP >=7.3)
supports all link formats
Submitted by
1Mouse
-
a month ago
2023-11-02 11:26
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Matches All the Odd Numbers
PCRE2 (PHP >=7.3)
Matches All the Odd Numbers
Submitted by
Dashrath Sharma
-
a month ago
2023-11-02 09:37
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Matches All the even numbers
PCRE2 (PHP >=7.3)
Matches all the even numbers from a given input.
Submitted by
Dashrath Sharma
-
a month ago
2023-11-02 09:35
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
match php tag
PCRE2 (PHP >=7.3)
match php tag
Submitted by
Shun Shun
-
a month ago
2023-11-01 12:50
(Last modified a month ago)
2023-11-01 13:42
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Match T-SQL view definition
PCRE2 (PHP >=7.3)
This regex matches the Transact SQL statement for selecting the database and creating a view.
Submitted by
anonymous
-
a month ago
2023-11-01 10:41
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regex ejemplo grafana01
PCRE2 (PHP >=7.3)
validacion de regex
Submitted by
Edson Rueda
-
a month ago
2023-10-31 20:48
1
2
3
4
5
6
...
870
filter branch name in git
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regular Expression
PCRE2 (PHP >=7.3)
/
^
(?<path>
.
*
\/
)*
(?<branch>
.
*
)
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
3 months ago
2023-09-01 09:53