in reply to Re: Re: Fiddling around with reg-ex
in thread Fiddling around with reg-ex

If I understand your question , you might be able to use alteration as in if ($var=~/home|mail|cat: cannot open/){do whatever}

You might not need to match the entire last string as long as the part you match is unique. I'd try to stay away from the $username stuff since it can change

Time flies like an arrow, fruit flies like banannas