#!/usr/bin/perl
# URL that generated this code:
# http://txt2re.com/index.php3?s=11:Feb:2019%20%22This%20is%20an%20Example!%22&11&-58&4&1
$txt='11:Feb:2019 "This is an Example!"';
$re1='.*?'; # Non-greedy match on filler
$re2='((?:[a-z][a-z0-9_]*))'; # Variable Name 1
$re3='.*?'; # Non-greedy match on filler
$re4='(2)'; # Any Single Character 1
$re5='.*?'; # Non-greedy match on filler
$re6='(".*?")'; # Double Quote String 1
$re7='((?:[a-z][a-z0-9_]*))'; # Variable Name 2
$re=$re1.$re2.$re3.$re4.$re5.$re6.$re7;
if ($txt =~ m/$re/is)
{
$var1=$1;
$c1=$2;
$string1=$3;
$var2=$4;
print "($var1) ($c1) ($string1) ($var2) \n";
}
#-----
# Paste the code into a new perl file. Then in Unix:
# $ perl x.pl
#-----