Can anyone tell me why this regex doesn't work:
Thanks#!/perl/bin/perl.exe -w $date = "20021122"; ($year, $month, $day) = $date =~ m/({.4})({.2})(.*)$/; print "YEAR $year\n"; print "MONTH $month\n"; print "DAY $day\n";
In reply to RegEx problem by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |