#!/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&-48&-5
$txt='15:Mar:2019 "This is an Example!"';
$re1='.*?'; # Non-greedy match on filler
$re2='(2019)'; # Integer Number 1
$re3='(0)'; # Any Single Character 1
$re4='.*?'; # Non-greedy match on filler
$re5='( )'; # Any Single Character 2
$re=$re1.$re2.$re3.$re4.$re5;
if ($txt =~ m/$re/is)
{
$int1=$1;
$c1=$2;
$c2=$3;
print "($int1) ($c1) ($c2) \n";
}
#-----
# Paste the code into a new perl file. Then in Unix:
# $ perl x.pl
#-----