in reply to What is regular expression for the following thing?

hey sanjay ,
use this one..
 if ($text =~ /^(REGISTER|INVITE|BYE)\s\w+(-|@|_)\w+\.\w+\sSIP\/2\.0$/)