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 15,240 community submitted regex patterns...
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Xcode
PCRE2 (PHP >=7.3)
Xcode
Submitted by
iulianOnofrei (U-lee-aan)
-
3 hours ago
2023-12-07 20:21
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
0.0
PCRE2 (PHP >=7.3)
TEST: the string contains a special word instead of another
Submitted by
anonymous
-
11 hours ago
2023-12-07 12:55
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Tracking Codes
PCRE2 (PHP >=7.3)
Gets the code tags and tracking codes for various online analytics platforms
Submitted by
anonymous
-
2 days ago
2023-12-06 00:34
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
House and Senate Bills
Golang
Match a House or Senate bill in text.
Submitted by
Jason Putorti
-
2 days ago
2023-12-05 16:20
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
just for test
PCRE2 (PHP >=7.3)
don't mind
Submitted by
anonymous
-
3 days ago
2023-12-05 07:46
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Eleanor rosevelt
PCRE2 (PHP >=7.3)
Random bootcamp exercice
Submitted by
anonymous
-
3 days ago
2023-12-04 14:48
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Egypt mobile number with country code
PCRE2 (PHP >=7.3)
This can be used for the internal dashboard.
Submitted by
Ehab Salah
-
3 days ago
2023-12-04 12:40
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Wikipedia Links
PCRE2 (PHP >=7.3)
match whether a link is wikipedia link
Submitted by
anonymous
-
4 days ago
2023-12-03 12:59
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Persian and English Title and Name and Address
ECMAScript (JavaScript)
it is a validator for name, title, address or any texts what need only accept persian-arabic alphabet and english. additional some characters like - ,
Submitted by
saebkhanzadeh
-
5 days ago
2023-12-02 21:02
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
文件名称验证
Java 8
操作系统文件名称验证,参考了Windows,Linux,Mac
Submitted by
腾龙问天
-
6 days ago
2023-12-01 16:03
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
datime
PCRE2 (PHP >=7.3)
datetime
Submitted by
anonymous
-
6 days ago
2023-12-01 14:15
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Google chat WebHook integration
PCRE2 (PHP >=7.3)
Regular match an URL integration to Google chat by WebHook
Submitted by
Vito Bryliano
-
7 days ago
2023-12-01 11:06
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
12 hour time
PCRE2 (PHP >=7.3)
Use this expression to validate a 12 hour time input
Submitted by
Amit Sharma
-
7 days ago
2023-12-01 08:56
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Malaysian NRIC
PCRE2 (PHP >=7.3)
Strict Malaysian NRIC format check Version 2: Shorten with assertion
Submitted by
17Hieng
-
7 days ago
2023-12-01 04:02
(Last modified 20 hours ago)
2023-12-07 03:54
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
URL
PCRE2 (PHP >=7.3)
Support any types of URL for https and http protocol. http or https [optional] domain name [mandatory] file path [optional] query parameter [optional]
Submitted by
17Hieng
-
7 days ago
2023-12-01 03:57
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Custom Datetime Finder
PCRE2 (PHP >=7.3)
Determine date time parts
Submitted by
anonymous
-
7 days ago
2023-11-30 17:52
(Last modified 2 days ago)
2023-12-05 14:24
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
git-flow branch names
PCRE2 (PHP >=7.3)
This is the regex for our branch names.
Submitted by
stefanfrede
-
11 days ago
2023-11-27 08:58
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
URLs
ECMAScript (JavaScript)
A simple URL regex that can handle most "properly" formed URLs, and some URIs. It features named groups to easily destruct matches. URIs can use relative paths (../ and ./) to resources. Example (JavaScript) let url = "https://username:password@example.org:8080/path/to/resource?query=term&query=ter...
Submitted by
ephellon
-
12 days ago
2023-11-26 02:56
(Last modified 4 days ago)
2023-12-03 19:35
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
CSS classes
ECMAScript (JavaScript)
This selects all (non crazy) CSS class in all valid scenarios
Submitted by
anonymous
-
12 days ago
2023-11-25 14:51
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Match paths
PCRE2 (PHP >=7.3)
Match paths
Submitted by
os_niko
-
13 days ago
2023-11-25 02:50
1
2
3
4
...
762
IIC++ Script Parsing Regex
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
PCRE2 (PHP >=7.3)
/
^
*
[^
\s
]
+
(
+
[^
\s
]
+
)*
$
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
Vu Tung Lam
-
6 months ago
2023-05-30 06:03