in reply to Simple pattern match failing - Possibly unicode issue

I suspect that you've got an extra set of parentheses around the last two capturing groups of the regex in your production code that's usurping $4: my $regexp = '(\d{4})(\d{2})(\d{2})\s*((\d{2})(\d{2}))';

Edit: oops - identical response to cdarke's - you have to be quick around here :)

Replies are listed 'Best First'.
Re^2: Simple pattern match failing - Possibly unicode issue
by irahul (Initiate) on Jun 04, 2010 at 14:16 UTC

    I am new on perlmonks. Good to see a pro-active and helpful community.