hello fellow users...
anyone willing to help on this one?
needing to match stuff like
24 Feb, 2021
03 Dec, 2018
[dd short month dddd]
using regexmatch. Thanks in advance!
regexmatch dates
-
highend
- Posts: 15016
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: regexmatch dates
$pattern = "\d{2} (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec), \d{4}";
One of my scripts helped you out? Please donate via Paypal
-
sweet40
- Posts: 84
- Joined: 21 Apr 2013 22:16
Re: regexmatch dates
assuming I can also
so it's able to also capture the single digits for days, I guess it's done, thank you very much!
BTW... months can be lower cased or do I have to feed them to the pattern manually?
Code: Select all
"\d{1,2} (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec), \d{4}";BTW... months can be lower cased or do I have to feed them to the pattern manually?
-
highend
- Posts: 15016
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: regexmatch dates
You've read the help file entry for
regexmatches()?One of my scripts helped you out? Please donate via Paypal
XYplorer Beta Club