#!/usr/bin/perl
# URL that generated this code:
# http://www.txt2re.com/index.php3?s=15:Mar:2019%20%22This%20is%20an%20Example!%22&-55&-36&-6
$txt='15:Mar:2019 "This is an Example!"';
$re1='.*?'; # Non-greedy match on filler
$re2='(2019)'; # Year 1
$re3='(0)'; # Any Single Character 1
$re4='.*?'; # Non-greedy match on filler
$re5='(n)'; # Any Single Word Character (Not Whitespace) 1
$re=$re1.$re2.$re3.$re4.$re5;
if ($txt =~ m/$re/is)
{
$year1=$1;
$c1=$2;
$w1=$3;
print "($year1) ($c1) ($w1) \n";
}
#-----
# Paste the code into a new perl file. Then in Unix:
# $ perl x.pl
#-----