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,840 community submitted regex patterns...
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
java判断整体多项式的合法性
ECMAScript (JavaScript)
java_PTA_6作业
Submitted by
anonymous
-
3 years ago
2020-07-16 09:53
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Phone USA and CANADA
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
3 years ago
2020-07-14 12:55
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Mexican Phone
ECMAScript (JavaScript)
Rules for Mexico: Numbers must be 10 digits long Area code is either 2 or 3 digits Remaining phone number has either 7 or 8 digits in groups of 3 or 4
Submitted by
anonymous
-
3 years ago
2020-07-14 12:53
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Egypt Phone Number Validation
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
3 years ago
2020-07-12 19:01
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Border Style CSS Property Validation (Javascript)
ECMAScript (JavaScript)
Validates any border-style value that contains 0-4 (valid) border styles. Only restriction on whitespace is at least one space/tab between values—all of the examples below are valid: "solid" "solid none" "none none solid"...
Submitted by
disk0 <www.github.com/disco0>
-
3 years ago
2020-07-09 07:44
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
bilibili排行前100
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
3 years ago
2020-07-07 14:45
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Repeated words
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
3 years ago
2020-07-04 17:15
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
email validation
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
3 years ago
2020-07-04 17:04
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
words in same sentence (also not consecutive)
ECMAScript (JavaScript)
La regex individua più parole, anche non consecutive, presenti nella stessa frase (non separate da un punto). Affinata per la gestione dell'attribuzione del flag cantina dell'importer.
Submitted by
anonymous
-
3 years ago
2020-07-02 13:09
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Replacing markup link to html
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
3 years ago
2020-07-02 10:15
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
matching phone numbers
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
3 years ago
2020-07-02 08:25
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
matching numbers
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
3 years ago
2020-07-01 21:01
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
word boundary position
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
3 years ago
2020-07-01 20:31
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
Regex tutorial
Java 8
Case insensitive match the whole word betwween \bword\b
Submitted by
anonymous
-
3 years ago
2020-07-01 10:00
(Last modified 5 months ago)
2023-07-20 07:05
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
map json
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
3 years ago
2020-06-30 09:17
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Multilingual Website finding, information-extractive, regex. VERY USEFUL. NO CREDIT NEEDED
ECMAScript (JavaScript)
Website finder Author: Bryan Hu What does this does This can give you very useful information about the sites this regex extracts. It can extract the main domains of a variety of sites, give you...
Submitted by
Bryan Hu
-
3 years ago
2020-06-30 01:09
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
String to Number
ECMAScript (JavaScript)
String to Number
Submitted by
anonymous
-
3 years ago
2020-06-29 21:44
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
0 or more quantifier (+, *)
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
3 years ago
2020-06-28 05:59
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Last Occurrence of comma(,) in a string
ECMAScript (JavaScript)
Used this to dynamically create placeholder text when a user changed the coordinates format from default to custom. ex ['DD', 'DDM', 'DMS'] to remove the comma from the string. The format comes from an array of strings so I had to do a join(', ').replace(/\,(?=*$)/g, ' or') to get DD, DDM or DMS
Submitted by
anonymous
-
3 years ago
2020-06-27 05:49
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Filter text inside square brackets and text before and after
ECMAScript (JavaScript)
This can be used for templating
Submitted by
anonymous
-
3 years ago
2020-06-26 16:13
1
...
171
172
173
174
175
176
177
...
292
Safaricom Regex ~Feb 2020
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
ECMAScript (JavaScript)
/
^
(
\+
){0,1}
(
254
){0,1}
(
70
|
71
|
72
|
79
)
(
\d
{7}
)
|
(
254
){0,3}
(
740
|
741
|
742
|
743
|
745
|
746
|
748
|
757
|
758
|
759
|
768
|
769
|
110
|
111
)
(
\d
{6}
)
$
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
4 years ago
2020-03-03 10:16