On Wed, Mar 19, 2014 at 1:49 PM, Thomas H. George <[email protected]>wrote:

> $_ = "          H K53                deloresg     Bills         Hank99
>       Pellinor";
> if (/\s*(\w+)\s*(\w+)\*(\w+)\s*(\w+)\s*(\w+)\s*(\w+)/i) {
>

This pattern is missing the "\s" after the second (\w+). The "\*" matches a
literal asterisk - which isn't in the string. So the match fails. Add the
"s" and it does what you expect.

-- 
Robert Wohlfarth

Reply via email to