#!/usr/bin/perl
# URL that generated this code:
# http://txt2re.com/index.php3?s=11:Feb:2019%20%22This%20is%20an%20Example!%22&-28&13
$txt='11:Feb:2019 "This is an Example!"';
$re1='((?:(?:[0-2]?\\d{1})|(?:[3][01]{1})))(?![\\d])'; # Day 1
$re2='.*?'; # Non-greedy match on filler
$re3='(b)'; # Any Single Word Character (Not Whitespace) 1
$re=$re1.$re2.$re3;
if ($txt =~ m/$re/is)
{
$day1=$1;
$w1=$2;
print "($day1) ($w1) \n";
}
#-----
# Paste the code into a new perl file. Then in Unix:
# $ perl x.pl
#-----