in reply to Re: Print the matched pattern
in thread Print the matched pattern

Thanks. I didnt know, $1 is carried over. Dumb me though I thought about it. Thanks