Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Donate
Info
Regex Editor
Community Patterns
Account
Regex Quiz
Settings
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 7.0 (C#)
Rust
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 3,820 community submitted regex patterns...
1
regex to get N words from a line
ECMAScript (JavaScript)
usefull if you want to return (N) words instead of (N) chars
Submitted by
Pavel Dominguez
-
9 years ago
1
Floating Point
ECMAScript (JavaScript)
Tests a floating point number
Submitted by
Josh L. Rasmussen
-
9 years ago
1
pure url and uri
ECMAScript (JavaScript)
no description available
Submitted by
Thiago Souza
-
9 years ago
1
Email Regex
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
1
text beetween <<>>
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
1
Cartão de cidadão / BI
ECMAScript (JavaScript)
no description available
Submitted by
David Serrano
-
9 years ago
1
10 digits
ECMAScript (JavaScript)
10 digits
Submitted by
anonymous
-
9 years ago
1
UID
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
1
Oracle Stored Procedure Name Validator
ECMAScript (JavaScript)
Validates valid Oracle Stored Procedure names
Submitted by
anonymous
-
9 years ago
1
^([a-zA-Z1-9]{1})([a-zA-Z0-9])+:$
ECMAScript (JavaScript)
hexa deciamal number with ending with ( :) a special character
Submitted by
anusha
-
9 years ago
1
Trim Whitespace before/after String
ECMAScript (JavaScript)
Remove whitespace before and after the string. Use g for trimming before and after Use m for trimming each line of a multiline string individually. Code: ' test '.replace( /(^\s+|\s+$)/gm, '' );
Submitted by
KevinV
-
9 years ago
1
ISO 8601 Duration Validator
ECMAScript (JavaScript)
Validates format of ISO-8601 duration.
Submitted by
ed0wolf
-
9 years ago
1
number of spaces at beginning of lines
ECMAScript (JavaScript)
find the number of spaces at the beginning of lines in a file.
Submitted by
andy
-
9 years ago
1
Regex SCript replace
ECMAScript (JavaScript)
no description available
Submitted by
MGO
-
9 years ago
1
dd-mm-yyyy
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
1
anti-xss regex
ECMAScript (JavaScript)
this is a white list regex that invalidates input with "=
Submitted by
Ivan Cai
-
8 years ago
(Last modified 10 months ago)
1
whitespaces and positive numerics
ECMAScript (JavaScript)
//Accepts whitespaces and positive numeric values including integers and decimals(ortional) with 3 precisions only. //Ex: "999", "99999.999", " 999.999" -> ACCEPTABLE
Submitted by
Pubudu (motustudio)
-
8 years ago
1
Match pointless spaces in space separated list
ECMAScript (JavaScript)
'test' - no match 'test test' - no match ' test' - match (space at the start) 'test ' - match (space at the end) 'test test' - match (single space in the middle)
Submitted by
J. Harry B.
-
8 years ago
1
•
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
1
File extention
ECMAScript (JavaScript)
Extract file extention from URL
Submitted by
anonymous
-
8 years ago
1
...
171
172
173
174
175
...
191
Brazilian Phone number
1
Regular Expression
ECMAScript (JavaScript)
/
(?:
\(
?
)
(
[
0
-
9
]
{2}
)
(?:
\)
?
?
)
(
9
?
[
0
-
9
]
{4}
)
(?:
\-
)?
(
[
0
-
9
]
{4}
)
/
g
Open regex in editor
Description
With optional 9 digit
Submitted by
Matheus Gambati
-
8 years ago