Looking at perlre, why doesn't [\.|\s] below match 'number followed by period OR space character?
my( $item_num, $event, $sep, $day )= $entry =~ m{^ (\d+) [\.|\s] \s+ ( +.*?) \s+(-|\N{EN DASH}|\N{EM DASH})\s+ (.*?) $}x; example entries 123 Festival - Sunday # doesn't work 456. Pool Party - Tuesday # works
In reply to Regex, match one or other character class by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |