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,580 community submitted regex patterns...
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
emoji short-code detection
ECMAScript (JavaScript)
Detects the short-code words for emojis (a la jemoji).
Submitted by
Eric McCormick
-
8 years ago
2016-01-26 14:32
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
bye
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
2016-01-28 18:19
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Date or N/A
ECMAScript (JavaScript)
Accepts Date or not applicable string.
Submitted by
Toufique Ahmed
-
8 years ago
2016-02-08 14:28
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
problem for homework
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
2016-02-15 06:28
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
kasd; fk.!@#$%^&*()*()%^&*()_
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
2016-02-19 21:22
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Href parse
ECMAScript (JavaScript)
matches href, title, innerhtml
Submitted by
chrysls
-
8 years ago
2016-02-21 21:05
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Remove XSS
ECMAScript (JavaScript)
no description available
Submitted by
Harish Thakur
-
8 years ago
2016-02-25 09:17
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
String Interpolation
ECMAScript (JavaScript)
String Interpolation. Works Like Angular
Submitted by
Aykut Alpgiray Ateş
-
8 years ago
2016-02-26 13:11
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
SSN
ECMAScript (JavaScript)
allow nine digits only
Submitted by
anonymous
-
8 years ago
2016-02-29 12:56
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Bible verse, biblical string in text
ECMAScript (JavaScript)
Matches biblical strings in text. Two capture groups are used - one for the books name and another for the passages of the same book. RegEx is long because it is strict!!! If you want to also match books names without specified chapter and verses use: /((?:[1234]\s?)?[a-zа-я]+)(\s?\d+(?::(?:\d+[—–-]...
Submitted by
Desislavsd
-
8 years ago
2016-03-02 11:01
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Title Casing
ECMAScript (JavaScript)
for use in function to title case a string; function cap(str) { return str.replace(/\w\S*/g, function(txt) { return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase(); }); }
Submitted by
Tamara F
-
8 years ago
2016-03-09 09:20
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
get href
ECMAScript (JavaScript)
gets value of href
Submitted by
me
-
8 years ago
2016-04-03 00:32
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
URL with Port
ECMAScript (JavaScript)
no description available
Submitted by
rkl
-
8 years ago
2016-04-08 08:47
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Capture 2 digits after a dash
ECMAScript (JavaScript)
Find all '-' and capture 2 following digits
Submitted by
Marie Imperial
-
8 years ago
2016-04-12 14:49
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Regular expression for matching parenthesis, two words and comma
ECMAScript (JavaScript)
Regular expression for matching parenthesis, two words and comma
Submitted by
anonymous
-
8 years ago
2016-04-24 11:40
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
JavaScript RegEx for Version ID
ECMAScript (JavaScript)
This expression is used to attempt to ID version of code.
Submitted by
Henry Rieke
-
8 years ago
2016-04-27 16:14
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Select the first word of each paragraph
ECMAScript (JavaScript)
If you need to select only the firs complete word for each paragraph.
Submitted by
fmathews28
-
8 years ago
2016-04-28 18:54
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
File name Cleanup
ECMAScript (JavaScript)
Strips all non "A-Z,a-z,0-9+-_" characters and replaces them with a single "-"
Submitted by
Apsis0215
-
8 years ago
2016-05-13 15:08
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
汉字匹配
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
2016-05-16 14:41
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
validate german zip codes
ECMAScript (JavaScript)
no description available
Submitted by
dopa0002
-
8 years ago
2016-05-24 11:23
1
...
6
7
8
9
10
11
12
...
179
problem for homework
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Regular Expression
ECMAScript (JavaScript)
/
^
(
(
[^
f
]
|
f
(
[^
io
]
|
o
(
[^
r
]
|
r
[
a
-
z
]
)
|
i
(
[^
ln
]
|
l
(
[^
e
]
|
e
[
a
-
z
]
)|
n
(
[^
d
]
|
d
[
a
-
z
]
))
)
)
[
a
-
z
]
*
|
(
f
(
o
|
i
|
i
(
l
|
n
)
)
)
)?
$
/
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
8 years ago
2016-02-15 06:28