Please enable JavaScript to use regex101
Regular
Expressions
101
Support Regex101
Social
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)
ECMAScript (JavaScript)
Python
Golang
Java
.NET 7.0 (C#)
Rust
PCRE (Legacy)
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among community submitted regex patterns...
0/512
-18
dd-mm-YYYY HH:mm:ss (year range 1000-2999)
Created
·
2013-05-13 22:48
Updated
·
2023-07-24 16:28
Flavor
·
PCRE (Legacy)
Validate Gregorian calendar dates that contain 24-hour times. This will also correctly match the Feb 29 date when it falls on a valid leap year. Leap years occur every 4 years, with one exception: when a year is evenly divisible by 100 but not evenly divisible by 400, the year will not be a leap year. Thus years 2100, 2200, and 2300 are not leap years but years 2000, 2400, and 2800 are.
Submitted by
Ka.
-5
Date with this format YYYY-MM-DD and year start 20 or 21
Created
·
2014-02-11 10:22
Flavor
·
PCRE (Legacy)
Date with this format YYYY-MM-DD and year start 20 or 21 like 2014
Submitted by
cisc0
-4
Latitude/longitude tester
Created
·
2014-04-29 11:33
Flavor
·
PCRE (Legacy)
Tests the string if it does contain valid latitude and longitude parameters
Submitted by
Doro
-3
Working With Data regex sample text
Created
·
2021-10-27 18:45
Flavor
·
PCRE2 (PHP)
This is a sample text for use at my "Working With Data" workshop session on regular expressions.
Submitted by
anonymous
-3
Xml Parser (improved description)
Created
·
2016-05-19 22:30
Flavor
·
PCRE (Legacy)
]+)\s()\s(?:\/>|>(.)) - (with global) finds all tags in scope 1st group is tagname 2nd group is attributes 3rd group (if it exists) is value of the tag Apply pattern again on 3th group to find internal tags (recurse in the code to parse entire xml!) Apply pattern below on 2nd group to find all attributes: \s+(+)\s=\s"(*)" - (with global) finds attributes 1st group is attributename 2nd group is attributevalue
Submitted by
veryanonymous
-3
IPv4 address
Created
·
2016-04-06 17:12
Flavor
·
Python
Matches any IPv4 address
Submitted by
anonymous
-3
Regex Include & Exclude
Created
·
2016-01-26 19:36
Flavor
·
PCRE (Legacy)
Exclude part of a string in an include string.
Submitted by
anonymous
-3
TD data from html table
Created
·
2015-12-24 10:15
Flavor
·
Python
no description available
Submitted by
Deepak Bansal
-3
retrieve hostname without subdomain
Created
·
2015-11-19 00:55
Flavor
·
PCRE (Legacy)
no description available
Submitted by
Diego Zuluaga
-3
Remove special character at first position of string
Created
·
2015-11-06 23:27
Flavor
·
PCRE (Legacy)
This search for special character at first position in the string
Submitted by
anonymous
-3
matching words between tags
Created
·
2015-09-22 15:10
Flavor
·
ECMAScript (JavaScript)
matching words between square brachets tags include newline or carriage return
Submitted by
anonymous
-3
Clean empty tags from HTML tags incl. tags containing space(s)
Created
·
2015-09-18 13:34
Flavor
·
PCRE (Legacy)
no description available
Submitted by
anonymous
-3
Html Tags
Created
·
2015-09-10 09:06
Flavor
·
ECMAScript (JavaScript)
Matches HTML structure
Submitted by
sagar
-3
get table name from mapfile
Created
·
2015-09-01 15:38
Flavor
·
PCRE (Legacy)
gets a postgis tablename from a mapfile with the given layer name, may not work depending on your mapfile layout
Submitted by
warnock
-3
Replace abba with ABBA
Created
·
2015-08-30 10:24
Flavor
·
PCRE (Legacy)
no description available
Submitted by
anonymous
-3
Facebook url regex
Created
·
2015-07-23 09:49
Flavor
·
PCRE (Legacy)
no description available
Submitted by
Devs Devaras
-3
a
Created
·
2015-07-17 20:10
Flavor
·
PCRE (Legacy)
a
Submitted by
a
-3
UpperCase words
Created
·
2015-07-15 16:06
Flavor
·
PCRE (Legacy)
no description available
Submitted by
ivo
-3
ipv4 - short version
Created
·
2015-07-15 08:26
Flavor
·
PCRE (Legacy)
no description available
Submitted by
gromozeka
-3
FQDN Fully Qualified Domain Name
Created
·
2015-06-25 16:31
Flavor
·
PCRE (Legacy)
no description available
Submitted by
Rafael Justo and Mauro Trajber
Community Library Entry
1
Regular Expression
Created
·
2015-11-06 15:52
Flavor
·
PCRE (Legacy)
/
^
(
(
(
\d
{0,16}
)
\.
\d
{1,16}
)
|
(
[
0
-
9
]
{1}
)
|
(
[
1
-
9
]
{1}
\d
{0,15}
)
|
[
1
-
9
]
{1,3}
(
,
\d
{3}
){1,}
|
(
(
[
1
-
9
]
{0,3}
,
(
\d
{1,3}
)
)*(
\.
\d
{1,16}
)
)
|
(
[
1
-
9
]
{1,3}
,
\d
{3}
)
)
$
/
gm
Open regex in editor
Description
any int, any int with decimal any int with comma delimited any int with comma delimited and decimal
Submitted by
amaroyche