Did you consider using split?
while (<INPUT>) { my ($key, $value)=split (/ is |: | at /); # save $key and $value; or print them; or ... }
CountZero
Update:Beaten by L~R
"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law
In reply to Re: Oft encountered regex problem
by CountZero
in thread Oft encountered regex problem
by GermanHerman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |