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 5,480 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
get teacher url
ECMAScript (JavaScript)
will match ^/teacher//list$ ^/teacher//file/$ ^/teacher//info/$ ...
Submitted by
anonymous
-
a year ago
2022-04-19 06:52
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
regex_commercial_activities
PCRE2 (PHP >=7.3)
guifro
Submitted by
guifro
-
a year ago
2022-04-19 15:53
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Clean phone numbers
ECMAScript (JavaScript)
(204)555-5555 (204)-(555)-(5555) 204-555-5555 To: 2045555555
Submitted by
smitpatelx
-
a year ago
2022-04-19 17:27
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
first word regex
PCRE2 (PHP >=7.3)
this can be used to show first word
Submitted by
anonymous
-
a year ago
2022-04-19 17:51
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Public Phone
PCRE2 (PHP >=7.3)
Public phone regex
Submitted by
AlexVerkhov
-
a year ago
2022-04-20 13:05
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Match a CiviCRM Case Hash
PCRE2 (PHP >=7.3)
CiviCRM prepends a hash to email subjects. This regex will capture the case hash and formatting and possibly useful for removing this text.
Submitted by
dtwx
-
a year ago
2022-04-20 13:31
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Readable fail2ban logs in AWS Cloudwatch
PCRE2 (PHP >=7.3)
Captures date, time, jail, action and ip address so they can be better formatted.
Submitted by
dtwx
-
a year ago
2022-04-20 13:33
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Test Function Block
PCRE2 (PHP >=7.3)
Test
Submitted by
anonymous
-
a year ago
2022-04-21 00:23
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Default HTML5 with German Umlauts
ECMAScript (JavaScript)
Adds german special characters äöüß to the default HTML5 regex
Submitted by
mroettgen
-
a year ago
2022-04-21 08:15
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Pan Number
PCRE2 (PHP >=7.3)
Pan Number
Submitted by
anonymous
-
a year ago
2022-04-21 13:23
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
GSTN
PCRE2 (PHP >=7.3)
Goods & Service Tax Numebr
Submitted by
anonymous
-
a year ago
2022-04-21 17:37
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
JavaScript Parse CSS Selector
ECMAScript (JavaScript)
Parse CSS Selector in the form element#id.class into its components. Any of the three elements can be missing.
Submitted by
Mark
-
a year ago
2022-04-22 06:39
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Name regex
PCRE2 (PHP >=7.3)
Custom name validation
Submitted by
anonymous
-
a year ago
2022-04-22 11:07
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Get First Name
ECMAScript (JavaScript)
Grab a first name from a full name string
Submitted by
Tom
-
a year ago
2022-04-22 17:17
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Snap Regex
PCRE2 (PHP >=7.3)
Pull property names snap Json
Submitted by
anonymous
-
a year ago
2022-04-22 18:27
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Money format
PCRE2 (PHP >=7.3)
Any money format
Submitted by
anonymous
-
a year ago
2022-04-24 15:29
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Branch naming policy for internal GitHub
PCRE2 (PHP >=7.3)
To enforce branch names to include specific prefix and not allow some special characters.
Submitted by
TParry
-
a year ago
2022-04-25 09:26
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
RGB 256 Function Notation
ECMAScript (JavaScript)
Standardized RGB 256 Notation for CSS Functions. For Example: const str = "255, 255, 255"; // Match const str = "0, 10, 200"; // Match...
Submitted by
anonymous
-
a year ago
2022-04-25 09:33
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
ipv4
ECMAScript (JavaScript)
IPv4 string check in JavaScript RegEx
Submitted by
clarkttfu@gmail.com
-
a year ago
2022-04-26 04:42
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
正規表現例
PCRE2 (PHP >=7.3)
正規表現の例です
Submitted by
anonymous
-
a year ago
2022-04-26 07:32
1
...
211
212
213
214
215
216
217
...
274
Function for LScript
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regular Expression
ECMAScript (JavaScript)
/
(
(
\$
?
[
A
-
Za
-
z_
]
[
A
-
Za
-
z_0
-
9.
]
*
)
:
)?
(
[
A
-
Za
-
z_
]
[
A
-
Za
-
z_0
-
9.
]
*
)
\(
(
(
.
*
,
)*
(
.
*
)
)
\)
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
a year ago
2022-11-01 21:42
(Last modified a year ago)
2022-11-02 16:13