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
Most upvotes
Most downvotes
Highest Score
Lowest Score
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 18,000 community submitted regex patterns...
0
Remove litteral \n
Python
This regex remove \n like litteral string not a newline
Submitted by
Nkio
-
10 years ago
0
Number matching RE
ECMAScript (JavaScript)
Optional plus or minus sign. Leading zero required for decimal number less than zero.
Submitted by
Mario Diana
-
10 years ago
0
phone matcher
PCRE (PHP <7.3)
phone matcher for following formats (123).234.4567 (123)-234-4567 (617) 495-1797 (617) 495 1797 (617) 4951797...
Submitted by
anonymous
-
10 years ago
0
html text grep
PCRE (PHP <7.3)
no description available
Submitted by
Cyrbil
-
10 years ago
0
Parse JSON key value pair
PCRE (PHP <7.3)
no description available
Submitted by
Kostas Trichas
-
10 years ago
0
Hostname-Match not found
PCRE (PHP <7.3)
I'm trying to match a hostname input with the following properties: a-z A-Z 0-9 : - are allowed ; doesnot start or end with - ; "." can be used to separate different labels of the hostname. But gives no match for this regex: ^(a-zA-Z0-9|(?<!-)\.(?![-.]))[a-zA-Z0-9]+)?)$ ...
Submitted by
Revathy
-
10 years ago
0
Domain Name .CZ - only 2th level format
PCRE (PHP <7.3)
Valid only for something.cz, some-thing.cz, 2245exampl.cz ... Not-valid for -some.cz, here.com.cz ...
Submitted by
Pavel Ondřej
-
10 years ago
0
GlobalRange-phone-fax
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
0
test
Python
no description available
Submitted by
anonymous
-
10 years ago
0
rr
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
10 years ago
0
Search string parser (PHP).
PCRE (PHP <7.3)
A simple regexp to parse a search string. It will split the search string into an array of search terms. Each search term will be represented by an array containing 3 strings: ...
Submitted by
@bananascript
-
10 years ago
0
sAMAccountName in ActiveDirectory validation
PCRE (PHP <7.3)
Used in C# in my particular case.
Submitted by
Aleksander Kirichek
-
10 years ago
0
parse some html img
PCRE (PHP <7.3)
task is prepend domain to all src img. why 3rd img doesnt parse???
Submitted by
adminko
-
10 years ago
0
regex101-4269
ECMAScript (JavaScript)
to share with IRC helpers
Submitted by
Bruno
-
10 years ago
0
urls and emails
PCRE (PHP <7.3)
no description available
Submitted by
Matthew O'Riordan
-
10 years ago
0
Fetch file information using File URL.
PCRE (PHP <7.3)
Get information from File URL such as, Extension. Parent folder name. Drive name. File name.
Submitted by
-Harshal.Ahire (ahireharshal@gmail.com)
-
10 years ago
0
(sub)domain match
PCRE (PHP <7.3)
1.Tree of subdivisions may have up to 127 levels. 2.Each label may contain up to 63 characters. 3.The full domain name may not exceed the length of 253 characters in its textual representation. rfc1035 rfc1123 rfc2181
Submitted by
Nick Chkhikvishvili
-
10 years ago
0
HTML5 time entry regex
ECMAScript (JavaScript)
This regex can be used within a HTML5 input tag to ensure a time has been entered correctly such as 23:40 or 11:40 PM.
Submitted by
Scott Mebberson
-
10 years ago
0
TCP/UDP port number
PCRE (PHP <7.3)
validates TCP/UDP port number (1..65535)
Submitted by
sanchox
-
10 years ago
0
Multiple matches in php but only one in javascript
ECMAScript (JavaScript)
I have used this regexp succesfully in php with flags gmU and have multiple matches. In js there is no U flag and this only returns last match. Is there anything I can do to make this work similarly in javascript?
Submitted by
yorogs
-
10 years ago
1
...
571
572
573
574
575
...
900
Community Library Entry
0
Regular Expression
PCRE (PHP <7.3)
/
^
(
(
[
1
-
9
]
\d
{0,3}
|
[
1
-
5
]
\d
{4}
|
6
[
0
-
4
]
\d
{3}
|
65
[
0
-
4
]
\d
{2}
|
655
[
0
-
2
]
\d
|
6553
[
0
-
5
]
)
)
$
/
Open regex in editor
Description
validates TCP/UDP port number (1..65535)
Submitted by
sanchox
-
10 years ago