#!/usr/bin/perl
# URL that generated this code:
# http://txt2re.com/index.php3?s=42%2043&10&4
$txt='42 43';
$re1='.*?'; # Non-greedy match on filler
$re2='.'; # Uninteresting: c
$re3='.*?'; # Non-greedy match on filler
$re4='.'; # Uninteresting: c
$re5='(.)'; # Any Single Character 1
$re6='.*?'; # Non-greedy match on filler
$re7='(?:(?:[0-2]?\\d{1})|(?:[3][01]{1}))(?![\\d])'; # Uninteresting: day
$re8='.*?'; # Non-greedy match on filler
$re9='((?:(?:[0-2]?\\d{1})|(?:[3][01]{1})))(?![\\d])'; # Day 1
$re=$re1.$re2.$re3.$re4.$re5.$re6.$re7.$re8.$re9;
if ($txt =~ m/$re/is)
{
$c1=$1;
$day1=$2;
print "($c1) ($day1) \n";
}
#-----
# Paste the code into a new perl file. Then in Unix:
# $ perl x.pl
#-----
 
Feedback
ShubhamGupta::
Saved my day!
Wed, 29 May 2013 11:36PM
::
Thu, 30 May 2013 12:02AM
Astarte::
Awesome, just awesome!
Thu, 30 May 2013 12:03AM
David Dawkins::
Excellent tool, where's the donate link? thank-you !!!