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
-3
Telephone
Created
·
2015-06-16 14:32
Flavor
·
PCRE (Legacy)
Find Telephone
Submitted by
Mr.Fail
-3
RegEX for account code starting with 000-
Created
·
2015-06-15 17:55
Flavor
·
PCRE (Legacy)
no description available
Submitted by
Joe H
-3
Matches percentage with any number of digits
Created
·
2015-06-10 19:26
Flavor
·
Python
Only captures value for converting percentage to decimal. Returns empty if percentage but no value. no match = no percentage found
Submitted by
sharkey
-3
Match email addresses and get the mail provider as a group
Created
·
2015-06-10 18:23
Flavor
·
PCRE (Legacy)
no description available
Submitted by
Ole
-3
remove facebook urls from html
Created
·
2015-06-03 01:35
Flavor
·
ECMAScript (JavaScript)
This will remove all facebook urls from a HTML string
Submitted by
Russell Miller
-3
Select a HTML table and all its innerHTML
Created
·
2015-04-15 19:49
Flavor
·
PCRE (Legacy)
no description available
Submitted by
@ixzy24
-3
Strict email validation
Created
·
2015-02-28 10:35
Flavor
·
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-3
Detect a numeric string
Created
·
2015-01-08 22:59
Flavor
·
ECMAScript (JavaScript)
no description available
Submitted by
Ankur Chauhan
-3
mama
Created
·
2014-08-22 02:48
Flavor
·
PCRE (Legacy)
no description available
Submitted by
anonymous
-3
Match substitutions
Created
·
2014-07-26 13:32
Flavor
·
Python
Match regular expressions substitutions, I personally use this to perform my validate if it is a substitution, then call re.sub() on it.
Submitted by
Zarthus
-3
Number
Created
·
2014-07-13 16:14
Flavor
·
ECMAScript (JavaScript)
Gets all numbers in a string. This includes positive and negative numbers aswell as integers and floats. By: http://www.benlorantfy.com/
Submitted by
Ben
-3
regex help
Created
·
2014-06-18 21:07
Flavor
·
PCRE (Legacy)
help please. i need regex,
Submitted by
James
-3
British Postcode Check
Created
·
2014-05-15 13:46
Flavor
·
PCRE (Legacy)
no description available
Submitted by
guest
-3
british postcode check
Created
·
2014-05-15 13:45
Flavor
·
PCRE (Legacy)
no description available
Submitted by
anonymous
-3
Date and Time
Created
·
2014-03-25 16:35
Flavor
·
PCRE (Legacy)
no description available
Submitted by
anonymous
-2
Codeforces 1800A Solution
Created
·
2023-07-24 16:01
Flavor
·
ECMAScript (JavaScript)
By inserting this regex in a programming language to test it against Codeforces 1800A you'll solve the task
Submitted by
EntityPlantt
-2
Ascending and Descending order
Created
·
2023-07-17 15:51
Flavor
·
Java
This regex is to match Ascending or descending order of 8 digit number
Submitted by
anonymous
-2
rustyms: pro forma single modification
Created
·
2023-06-21 21:59
Flavor
·
Rust
The regex to match a single pro forma modification with all its intricacies.
Submitted by
Douwe Schulte
-2
Iranian Mobile Numbers
Created
·
2023-06-11 10:41
Flavor
·
PCRE2 (PHP)
To Validate Iranian Operators Number Validation
Submitted by
AMAISGOD
-2
PHP Serialization String Validator
Created
·
2023-03-03 06:10
Flavor
·
PCRE (Legacy)
PHP serialize / unserialize __sleep __wakeup __serialize __unserialize
Submitted by
Abdullah Pazarbasi
-2
Parsing result of SQL Server version (SELECT @@VERSION)
Created
·
2023-02-15 21:12
Flavor
·
.NET 7.0 (C#)
Parses MS SQL Server version returned from executing SELECT @@version
Submitted by
M Rivas
-2
Match whitespace and colon, except in specific words
Created
·
2022-08-10 15:21
Flavor
·
ECMAScript (JavaScript)
For string splitting / deconstructing
Submitted by
anonymous
-2
Conventional Commits commit regex
Created
·
2022-01-31 00:53
Flavor
·
PCRE2 (PHP)
https://www.conventionalcommits.org/en/v1.0.0/
Submitted by
Michael Collins
-2
Quizzes Feedpager – XML
Created
·
2022-01-27 13:30
Flavor
·
PCRE (Legacy)
Matches the XML pages of the /quizzes routes for feedpager
Submitted by
anonymous
-2
smargs
Created
·
2021-03-16 00:05
Flavor
·
PCRE2 (PHP)
smargs not margins
Submitted by
rkatz
-2
From conf table to hive table
Created
·
2021-02-18 19:33
Flavor
·
PCRE2 (PHP)
no description available
Submitted by
anonymous
-2
LinuxOSVersion
Created
·
2021-02-16 10:33
Flavor
·
PCRE2 (PHP)
no description available
Submitted by
anonymous
-2
Exclude particular word in phrase
Created
·
2021-02-16 08:53
Flavor
·
PCRE2 (PHP)
this will exclude particular phrase from a line. means it will match only those line which dont have those word
Submitted by
anonymous
-2
Url regex
Created
·
2021-02-14 19:11
Flavor
·
PCRE2 (PHP)
no description available
Submitted by
anonymous
-2
Eide Chrysler New Goal
Created
·
2021-02-02 00:42
Updated
·
2021-02-02 00:44
Flavor
·
PCRE2 (PHP)
no description available
Submitted by
anonymous
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