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
Relevance
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
1
Date and age matcher
Created
·
2024-05-04 14:27
Updated
·
2024-05-04 14:28
Flavor
·
Python
matches strings like: "01/04/2023", "14/May/24" and "20" (age). WARNING: for american dates swap day and month! Groups: Date - the whole date Day - day Month - month Year - year (4 or 2 digits) Age - if the string is just one number (Ex. "18"), matches the same as year
Submitted by
OlgPok
1
DD/MM/YYYY Date with leap years
Created
·
2024-03-27 19:21
Flavor
·
Python
1000-9999 years '-', ' ', ':', '.', or '/' may be user as divider
Submitted by
furren
0
Extract structure from dates
Created
·
2023-04-19 09:05
Flavor
·
Python
1-12 / 2022
Submitted by
anonymous
0
Match Dates
Created
·
2023-03-09 20:48
Flavor
·
Python
Write a program, which matches a date in the format "dd{separator}MMM{separator}yyyy". Use capturing groups in your regular expression.
Submitted by
anonymous
0
datetime
Created
·
2023-03-07 12:34
Updated
·
2023-03-07 12:55
Flavor
·
Python
Simple datetime expression for [DD.MM[.YYYY]]T[hh[:mm]]
Submitted by
anonymous
0
datecheck
Created
·
2023-01-03 17:08
Flavor
·
Python
expression pour checker les dates
Submitted by
anonymous
0
valid date
Created
·
2022-09-17 10:46
Flavor
·
Python
this regular expression is for validating dates in yyyy-mm-dd format
Submitted by
anonymous
0
ISO8601 Date/Time Parser
Created
·
2022-07-10 03:03
Flavor
·
Python
Parses most of the variations of ISO8601 that are allowed, including dates only and date/time with or without the time zone.
Submitted by
Mumblepins
0
Matching %d-%b date format
Created
·
2022-05-25 22:36
Flavor
·
Python
Matching %d-%b date format with or without leading 0 in the day
Submitted by
Justin Copeland
0
regex expression to DateTime checking in YYYY-MM-DDTHH:MM:SS[+/-]HH:SS
Created
·
2022-05-17 04:45
Updated
·
2023-07-19 13:51
Flavor
·
Python
/(^((\d{4}-(((013578]|[1)-(01-9]|[1-2]\d|3[01]))))|((\d{4}-(((0[469]|[1)-(01-9]|[1-2]\d|[3)))))|((\d{4}-(02]-(0[1-9]|[1-2]\d)))))T(([01]\d|2[0-3]):([0-5]\d):([0-5]\d))?([+-\d:[0-5]\d)$)/gm
Submitted by
anonymous
1
Paystub Basic Salary
Created
·
2022-02-07 06:13
Flavor
·
Python
Extract Amount and Date from Paystub
Submitted by
MAJED MUSA GHANIM
0
Parse ISO date with named group for Python
Created
·
2022-01-21 08:38
Flavor
·
Python
Parses ISO date like: 2021-01-19T15:21:32.59+02:00 and returns these named groups: fulldate (full date and time) date (2021-01-19) time (15:21:32.59) tz (+02:00)
Submitted by
Fabio Rotondo (fsoft)
0
Date YYYY-MM-DD | YYYY/MM/DD | YYYY.MM.DD (ex. 2021-12-09) (leading zeros for month and day)
Created
·
2021-05-12 13:55
Flavor
·
Python
For Dates formatted YYYY-MM-DD separated by Dot (.) Dash(-) or Slash(/) like (2021-04-08) with Zeros for single digit Month and Day.
Submitted by
QuickRegEx
0
Date YYYY-M-D | YYYY/M/D | YYYY.M.D (ex. 2021-9-2) (without leading zeros for month and day)
Created
·
2021-05-12 13:54
Flavor
·
Python
For Dates formatted YYYY-M-D separated by Dot (.) Dash(-) or Slash(/) like (2021-9-2) without leading Zeros for single digit Month and Day.
Submitted by
QuickRegEx
0
Date DD-MM-YYYY | DD/MM/YYYY | DD.MM.YYYY (ex. 28-02-2021) (leading zeros for month and day)
Created
·
2021-05-12 13:47
Flavor
·
Python
For Dates formatted DD-MM-YYYY separated by Dot (.) Dash(-) or Slash(/) like (28–02-2021) with leading Zeros for single digit Month and Day.
Submitted by
QuickRegEx
0
Date D-M-YYYY | D/M/YYYY | D.M.YYYY (ex. 28-02-2021) (without leading zeros for month and day)
Created
·
2021-05-12 13:46
Flavor
·
Python
For Dates formatted D-M-YYYY separated by Dot (.) Dash(-) or Slash(/) like (28-2-2021) without leading Zeros for single digit Month and Day.
Submitted by
QuickRegEx
0
Date M-D-YYYY | M/D/YYYY | M.D.YYYY (ex. 9-2-2021) (without leading zeros for month and day)
Created
·
2021-05-12 13:37
Flavor
·
Python
For Dates formatted M-D-YYYY separated by Dot (.) Dash(-) or Slash(/) like (9-2-2021) without leading Zeros for single digit Month and Day.
Submitted by
QuickRegEx
0
Date MM-DD-YYYY | MM/DD/YYYY | MM.DD.YYYY (ex. 09-02-2021) (leading zeros for month and day)
Created
·
2021-05-12 13:28
Flavor
·
Python
For Dates formatted MM-DD-YYYY separated by Dot (.) Dash(-) or Slash(/) like (09-02-2021) with leading Zeros for single digit Month and Day.
Submitted by
QuickRegEx
0
SSC/lexisnexis/clean_docket+date+dispo/dockets/extract_appealscourt_dispo/MS/(1/2)
Created
·
2021-04-22 22:51
Updated
·
2021-04-22 23:14
Flavor
·
Python
Regex pattern (1/2) for function "def extract_appealscourt_dispo()" for Mississippi. This function extracts the part of the dispo relative to the court of appeals when dispo is reported relative to multiple courts.
Submitted by
Joost Sijthoff
0
SSC/lexisnexis/clean_docket+date+dispo/dockets/extract_appealscourt_dispo/MS/(2/2)
Created
·
2021-04-22 22:51
Updated
·
2021-04-22 23:05
Flavor
·
Python
Regex pattern (2/2) for function "def extract_appealscourt_dispo()" for Mississippi. This function extracts the part of the dispo relative to the court of appeals when dispo is reported relative to multiple courts.
Submitted by
anonymous
0
syslog regex
Created
·
2021-02-22 15:32
Flavor
·
Python
Takes a syslog with the basic pattern: date-&-time server process: message
Submitted by
rcuza
0
Date regex
Created
·
2021-02-18 15:21
Flavor
·
Python
no description available
Submitted by
Krynce
0
date time
Created
·
2020-11-09 03:28
Flavor
·
Python
1/Jul/2013 03:27:12ss
Submitted by
himel
0
Grab date (used with grab time for consistent results)
Created
·
2020-09-15 16:50
Flavor
·
Python
no description available
Submitted by
anonymous
0
Time grabber
Created
·
2020-09-15 16:22
Flavor
·
Python
Grab time from datetime
Submitted by
anonymous
0
Наконец-то date0 к нужной колонке подтянулся в дате со сложным форматом 2
Created
·
2020-09-07 10:30
Flavor
·
Python
Trying out based on list of these formats
Submitted by
anonymous
0
Date & time regex test
Created
·
2020-09-06 19:36
Flavor
·
Python
Trying out based on list of these formats
Submitted by
anonymous
0
Date & time regex test
Created
·
2020-09-06 16:01
Flavor
·
Python
Trying out based on list of these formats
Submitted by
anonymous
1
linux log regex
Created
·
2020-08-10 07:45
Flavor
·
Python
Matches Date & time in group 1, and the PID in group 4. will update to match computer name and user names too when i can.
Submitted by
anonymous
1
linux log regex
Created
·
2020-08-10 07:21
Flavor
·
Python
used to pull Date, time and PID from linux log files
Submitted by
anonymous
1
day date time
Created
·
2020-06-30 15:03
Flavor
·
Python
no description available
Submitted by
anonymous
0
Add quotes around unquoted dates
Created
·
2020-06-04 14:43
Flavor
·
Python
Used this for a lab in my R class. We copied and pasted WHAS 500 data. The the data values in the raw data do not have quotes around them.
Submitted by
anonymous
1
date_regex
Created
·
2020-04-24 08:14
Updated
·
2024-01-08 13:19
Flavor
·
Python
YYYYMMDD YYYY-MM-DD YYYY.MM.DD YYYY/MM/DD YYYY-M-D YYYY.M.D YYYY/M/D If the sep[-./] is not given, "0" must appear before a single num. such as 20180203, 20190905. If the sep [-./] is given, the prefix 0 is optional.
Submitted by
anonymous
0
Date dd-mm-yyyy
Created
·
2020-03-01 10:05
Flavor
·
Python
no description available
Submitted by
anonymous
0
WhatsappMsgParser
Created
·
2019-10-09 15:09
Flavor
·
Python
This Regex parse whats-app messages to 4 groups: Group1- Date (dd/mm/yyyy) Group2- Time (hh:mm) Group3- Author/Sender (name or phone number) Group4- Chat (actual chat data)
Submitted by
anonymous
0
date_regex
Created
·
2019-09-05 06:26
Flavor
·
Python
YYYYMMDD YYYY-MM-DD YYYY.MM.DD YYYY/MM/DD YYYY-M-D YYYY.M.D YYYY/M/D If the sep[-./] is not given, "0" must appear before a single num. such as 20180203, 20190905. If the sep [-./] is given, the prefix 0 is optional.
Submitted by
anonymous
0
Dates
Created
·
2019-07-30 14:43
Flavor
·
Python
no description available
Submitted by
anonymous
0
lib1
Created
·
2019-05-31 03:24
Flavor
·
Python
import time print(time.time()) import datetime print(datetime.datetime.now()) from datetime import datetime print(datetime.now()) from datetime import datetime as dt print(dt.now())
Submitted by
anonymous
0
Month (Alpha) and Day
Created
·
2019-01-16 23:10
Flavor
·
Python
Three letter or full text month name (including Sept for September) with or without upper case first letter for month followed by one or two digit day with no intervening white space. examples: Jan10 february29 Sept15 september30 Invalid dates can get by: eg February30, Jun31
Submitted by
anonymous
0
Date extraction
Created
·
2018-08-30 13:04
Flavor
·
Python
no description available
Submitted by
anonymous
0
GS1Numeric Serialized GTIN with Lot and Expiry
Created
·
2018-05-20 15:39
Flavor
·
Python
GS1Numeric Serialized GTIN with Lot and Expiry Will recognize and pull into groups the following: GTIN-14 Serial Number Expiration Date Lot
Submitted by
SerialLab, Corp
0
date
Created
·
2018-04-20 00:53
Flavor
·
Python
no description available
Submitted by
anonymous
0
Date tests
Created
·
2018-04-18 00:27
Flavor
·
Python
A collection of dates used for the Data Science with Python course
Submitted by
anonymous
0
Datetime regex
Created
·
2017-12-20 17:57
Flavor
·
Python
Matches dates in the following format: %Y/%m/%dT%H:%M:%S This is 24h format (00-23h) and no leap seconds.
Submitted by
anonymous
0
Datetime regex
Created
·
2017-12-20 17:40
Flavor
·
Python
Matches dates in the following format: %Y/%m/%dT%H:%M:%S This is 24h format (00-23h) and no leap seconds.
Submitted by
anonymous
0
date
Created
·
2017-10-23 14:07
Flavor
·
Python
no description available
Submitted by
anonymous
0
Dates
Created
·
2017-10-05 23:39
Flavor
·
Python
no description available
Submitted by
anonymous
0
ISO 8601 date
Created
·
2017-06-13 09:25
Flavor
·
Python
designed to work specifically with the parser of the python dateutil package
Submitted by
anonymous
0
ISO 8601 date external
Created
·
2017-06-12 12:55
Flavor
·
Python
http://www.pelagodesign.com/blog/2009/05/20/iso-8601-date-validation-that-doesnt-suck/
Submitted by
anonymous
0
get date from french text
Created
·
2017-03-20 02:17
Flavor
·
Python
no description available
Submitted by
anonymous
Load More