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 3,660 community submitted regex patterns...
12
31 upvotes, 19 downvotes (score 48.2%) (You must be signed in to vote)
Full name (Turkish)
ECMAScript (JavaScript)
Matches case insensitive first name, optional unlimited number of middle names and last name separated with space format. Replaced \w with explicit char range for Turkish support. (Äž accepted as first char not to over complex)
Submitted by
CKK
-
9 years ago
2014-09-29 13:31
7
11 upvotes, 4 downvotes (score 48%) (You must be signed in to vote)
RFC 3987 compliant URL regex
ECMAScript (JavaScript)
This is a JavaScript port of the URL regex from http://stackoverflow.com/a/190405/384062 that includes a bug fix and some optimization. Mathias Bynens's Regenerate was used to convert unicode escapes. Bug fix: Eliminated stray | falsely allowing querystring to contain | ...
Submitted by
Hans Meyer
-
8 years ago
2015-06-24 14:07
16
74 upvotes, 58 downvotes (score 47.5%) (You must be signed in to vote)
http url regex
ECMAScript (JavaScript)
general purpose HTTP URL regex
Submitted by
Miguel Castillo @manchagnu
-
8 years ago
2015-06-21 19:49
16
90 upvotes, 74 downvotes (score 47.2%) (You must be signed in to vote)
Password
ECMAScript (JavaScript)
Safe Password that allow only with a number, a lowercase, a uppercase, and a special character
Submitted by
davidlondono
-
9 years ago
2015-04-28 16:49
14
92 upvotes, 78 downvotes (score 46.6%) (You must be signed in to vote)
Phone Number
ECMAScript (JavaScript)
Allows phone numbers with optional country code, optional special characters and whitespace
Submitted by
Tlmader
-
8 years ago
2015-08-11 17:07
6
10 upvotes, 4 downvotes (score 45.4%) (You must be signed in to vote)
Split quotes and single words
ECMAScript (JavaScript)
Find " and ' quoted strings and "orphaned"/single words in a string
Submitted by
LoveIsGrief
-
10 years ago
2013-12-29 18:41
6
150 upvotes, 144 downvotes (score 45.3%) (You must be signed in to vote)
Password
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
10 years ago
2013-12-06 14:02
(Last modified 4 months ago)
2023-07-21 04:59
5
7 upvotes, 2 downvotes (score 45.3%) (You must be signed in to vote)
Password strength
ECMAScript (JavaScript)
Regular expression for password validation Rules: 8-120 chars no spaces must contain at least one a-z char must contain at least one A-Z char...
Submitted by
@razvanz
-
8 years ago
2015-08-20 14:32
6
11 upvotes, 5 downvotes (score 44.4%) (You must be signed in to vote)
search word with an accent
ECMAScript (JavaScript)
search any word with an accent
Submitted by
Thegner Pierre
-
8 years ago
2015-08-04 08:06
7
17 upvotes, 10 downvotes (score 44.2%) (You must be signed in to vote)
split URL into location-resource-params (JavaScript)
ECMAScript (JavaScript)
Extract resource location, name and query parameters from a URL (JavaScript version)
Submitted by
cebence
-
10 years ago
2014-05-22 17:18
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
TimezoneOffset
ECMAScript (JavaScript)
parses timezones in the format -08:00 or -8:0
Submitted by
Neha Kadam
-
9 years ago
2014-12-09 07:38
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Smart Target Blank
ECMAScript (JavaScript)
Allow you to check if the JavaScript location.pathname is a link required adding a target="_blank".
Submitted by
Bruno Lesieur
-
9 years ago
2015-02-02 16:57
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Request mask idea
ECMAScript (JavaScript)
Do you like apis and nodejs as I do?, then this must be for you, have you noticed that all the famous apis have a common functionality? the ability to request partial responses with masks, so if you have a friend list you may want to return only a few fields you know just in case. You will end up re...
Submitted by
Marco Villarreal<erick.slayer.m.v@gmail.com>
-
9 years ago
2015-04-11 19:49
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
javascript regex ftp directory list
ECMAScript (JavaScript)
javascript regex ftp directory list
Submitted by
anonymous
-
8 years ago
2015-06-23 11:55
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Italian ZIP code (CAP)
ECMAScript (JavaScript)
Codice avviamento postale Italiano (ZIP)
Submitted by
Italo
-
8 years ago
2015-07-03 13:40
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Match a URL from a text message
ECMAScript (JavaScript)
I use this to match the first url present in a text message.
Submitted by
anonymous
-
8 years ago
2015-08-06 06:16
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Arrow function to Normal function
ECMAScript (JavaScript)
Convert Arrow Function to Normal Function
Submitted by
Abhisek Pattnaik
-
8 years ago
2015-09-13 17:51
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
SemVer chain parsing
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
2015-09-18 09:48
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
yyyy-MM-dd hh:MM
ECMAScript (JavaScript)
date format for "yyyy-MM-dd hh:MM" valid strict model.
Submitted by
image72
-
8 years ago
2015-09-28 13:36
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Get Headings From Markdown Format
ECMAScript (JavaScript)
Get all headings in a Markdown Format Text
Submitted by
Ferdinand Dimas
-
8 years ago
2015-11-30 04:23
1
2
3
4
5
6
...
183
Hashtag
15
25 upvotes, 10 downvotes (score 54.9%) (You must be signed in to vote)
Regular Expression
ECMAScript (JavaScript)
/
#
\w
+
/
g
Open regex in editor
Description
Loading markdown...
Submitted by
Joogl
-
9 years ago
2014-10-05 17:14