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,680 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Matching anything minimum 1 character, max 50
ECMAScript (JavaScript)
^.{1,50}$
Submitted by
anonymous
-
2 years ago
2021-06-14 07:24
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Unit Interval Decimal
ECMAScript (JavaScript)
Handles basic decimal numbers on the interval [0, 1]—e.g. 1, 0, 0.0, 0.4, 1.00—as well as stranger formatting like 00000.1 or 000001.000000.
Submitted by
disk0
-
2 years ago
2021-06-13 07:58
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
email
PCRE2 (PHP >=7.3)
........
Submitted by
ramses
-
2 years ago
2021-06-11 18:51
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Minecraft Log Matcher
ECMAScript (JavaScript)
Matches the pieces of minecraft log output
Submitted by
anonymous
-
2 years ago
2021-06-11 11:43
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Username ( case insensitive )
ECMAScript (JavaScript)
Username of length 5 to 12 characters.. case Insensitive Alphanumeric
Submitted by
anonymous
-
2 years ago
2021-06-11 11:34
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Password
ECMAScript (JavaScript)
Password regex ( includes all alphanumeric, @ , - , _ ).. requires 8 min 8 characters. maximum 20 characters
Submitted by
anonymous
-
2 years ago
2021-06-11 11:31
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Phone Number regex (valid regex for uk numbers)
ECMAScript (JavaScript)
UK based phone number regex
Submitted by
anonymous
-
2 years ago
2021-06-11 11:19
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Username (case insensitive)
ECMAScript (JavaScript)
Check out this username regex.. Case insensitive and max char limit is 12
Submitted by
anonymous
-
2 years ago
2021-06-11 11:11
(Last modified 2 years ago)
2021-06-11 11:24
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
email regex
ECMAScript (JavaScript)
email regex expression...feel free to comment if you find efficient way
Submitted by
anonymous
-
2 years ago
2021-06-11 11:06
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Get the username from LinkedIn-URL
PCRE2 (PHP >=7.3)
Get only the profile name from international or german LinkedIn-URL
Submitted by
LEIK Software
-
2 years ago
2021-06-11 09:34
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
RegEx to add any valid US phone number inputs
PCRE2 (PHP >=7.3)
##examples of valid US phone number inputs *555-555-5555 *(555)555-5555 *(555) 555-5555 *555 555 5555...
Submitted by
@abhi00o7
-
2 years ago
2021-06-11 03:23
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Comentarios en Basic
PCRE2 (PHP >=7.3)
.
Submitted by
anonymous
-
2 years ago
2021-06-10 21:06
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Validar email
PCRE2 (PHP >=7.3)
.
Submitted by
anonymous
-
2 years ago
2021-06-10 20:43
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Get Youtube ID from shared URL
ECMAScript (JavaScript)
Given a youtube URL ... pull the video ID
Submitted by
anonymous
-
2 years ago
2021-06-10 14:11
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
获取导入的模块相对路径
ECMAScript (JavaScript)
获取导入的模块相对路径
Submitted by
高乐天
-
2 years ago
2021-06-10 11:06
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Persian words
PCRE2 (PHP >=7.3)
Regex for find persian letters in a string
Submitted by
Hamed Faryabi
-
2 years ago
2021-06-10 06:50
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Domain from url
ECMAScript (JavaScript)
Domain from url
Submitted by
anonymous
-
2 years ago
2021-06-09 10:42
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Find between Quotes
ECMAScript (JavaScript)
Find between Quotes
Submitted by
anonymous
-
2 years ago
2021-06-09 10:35
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Text Search
ECMAScript (JavaScript)
Text Search
Submitted by
anonymous
-
2 years ago
2021-06-09 10:32
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
identify duplicate consecutive words + word combinations to remove
PCRE2 (PHP >=7.3)
Identifies duplicate word and word combinations that exist consecutively within a string for removal. It is currently configured for up to 3 consecutive words but can be extended by adding additional (\s+\w)* to the first groups pattern match logic use with substitution val $1 good for removing d...
Submitted by
GrantO
-
2 years ago
2021-06-08 16:19
1
...
126
127
128
129
130
131
132
...
284
Used to search last occurence of a string and trim it to the required digits
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
PCRE2 (PHP >=7.3)
/
(
R
[
0
-
9
]
[
0
-
9
]
[
0
-
9
]
[
0
-
9
]
[
0
-
9
]
(?=
\w
+
$
)
)
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
Sri
-
2 years ago
2021-03-31 03:56