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...
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
Object regex
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
2015-04-15 09:33
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
does this work dms?
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
2015-04-13 15:12
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>
-
8 years ago
2015-04-11 19:49
-1
7 upvotes, 8 downvotes (score 24.8%) (You must be signed in to vote)
UK Postcode Validation
ECMAScript (JavaScript)
Matches all valid, current UK Postcodes, including Girobank and non-geographic postcodes, irrespective of whether they contain a space. It does not include overseas territories. Adapted from the BS7666 postcode rules at http://www.cabinetoffice.gov.uk/govtalk/schemasstandards/e-gif/datastandards/add...
Submitted by
Ti Marner
-
8 years ago
2015-04-10 22:38
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Get the extension of file
ECMAScript (JavaScript)
Get the extension of file
Submitted by
Taffarel Xavier
-
8 years ago
2015-04-08 22:20
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
Get extension of an file
ECMAScript (JavaScript)
Get extension of an file.
Submitted by
Taffarel Xavier
-
8 years ago
2015-04-08 20:38
-2
1 upvotes, 3 downvotes (score 4.6%) (You must be signed in to vote)
Username
ECMAScript (JavaScript)
^[_a-zA-Z0-9]+$ how to make regex username with underscore. i'm using c# but this regex isn't working.
Submitted by
anonymous
-
8 years ago
2015-04-08 03:53
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Ultimate url regex
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
2015-04-07 17:37
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Detecta abreviaturas de tipo de personalidades juridicas
ECMAScript (JavaScript)
Detecta abreviaturas de tipo de personalidades juridicas, que habitualmente se encuentran en la razón social de una empresa, en el caso de Chile es obligatorio la razon social especifique que tipo de personalidad juridica es.
Submitted by
Edurdo Gómez
-
8 years ago
2015-04-06 15:25
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
ISO-8601 date parse
ECMAScript (JavaScript)
Works with 2015-04-03T13:56:24.0+00:00 (official) format, and 2015-04-03T13:56:24+0000 (PHP) format, too
Submitted by
Norbi
-
8 years ago
2015-04-03 11:57
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
test tags Libellex
ECMAScript (JavaScript)
no description available
Submitted by
AROC
-
8 years ago
2015-04-02 07:46
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Pre tags and inner contents grabber for JavaScript
ECMAScript (JavaScript)
No /s, took quite a time to think.
Submitted by
Namikaze Ray a.k.a. Pendechosen
-
8 years ago
2015-04-01 12:57
1
5 upvotes, 4 downvotes (score 26.7%) (You must be signed in to vote)
HTML Anchor <a> Tag Grabber(overcome newlines)
ECMAScript (JavaScript)
no description available
Submitted by
Namikaze Ray a.k.a Pendecosen
-
8 years ago
2015-04-01 02:25
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
Brazillian Phone Number Format (Formato de Num. de Telefone no Brasil)
ECMAScript (JavaScript)
no description available
Submitted by
Castrolol
-
8 years ago
2015-03-30 19:25
1
4 upvotes, 3 downvotes (score 25%) (You must be signed in to vote)
spaces in parenthesis
ECMAScript (JavaScript)
Eliminate spaces in the inner part of parenthesis.
Submitted by
Luis Colorado
-
8 years ago
2015-03-26 08:43
1
3 upvotes, 2 downvotes (score 23.1%) (You must be signed in to vote)
Only return what's between the brackets i.e. (a)
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
2015-03-23 02:10
4
5 upvotes, 1 downvotes (score 43.6%) (You must be signed in to vote)
Hibernate SQL Reductor
ECMAScript (JavaScript)
If you want to understand an SQL statement for Hibernate: this replaces the selected fields in an SQL statement generated by Hibernate by a shorthand, since you usually just care about the logic. E.g. it changes select foo0_.bla as bla1_3, foo0_.bar as bar1_3, foo0_.baz1_3 as baz1_3 from ... to sele...
Submitted by
Hans-Peter Stoerr www.stoerr.net
-
9 years ago
2015-03-19 16:11
1
3 upvotes, 2 downvotes (score 23.1%) (You must be signed in to vote)
AD Default Password Policy
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
2015-03-18 00:48
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
NSE0(.*)\nNSE1\s+(.*)\nNSE2\s(.*)\nNSE3\s+(.*)kbps.*\nNSE4\s+(.*)\nNSE
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
2015-03-15 04:43
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Google Sheets Reference Formula
ECMAScript (JavaScript)
Matches and extracts the relevant parts of reference formulas from Google Sheets. For instance: ='Test Sheet'!H$5
Submitted by
anonymous
-
9 years ago
2015-03-12 20:53
1
...
272
273
274
275
276
277
278
...
284
phone +38(099) 999 99 99
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
ECMAScript (JavaScript)
/
^
\+
38
\(
0
\d
{2}
\)
\s\d
{3}
\s\d
{2}
\s\d
{2}
$
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
5 years ago
2018-09-06 14:40