Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: What is regular expression for the following thing?by luckypower (Beadle) |
on Oct 20, 2008 at 09:13 UTC ( [id://718170]=note: print w/replies, xml ) | Need Help?? |
hey sanjay , use this one.. if ($text =~ /^(REGISTER|INVITE|BYE)\s\w+(-|@|_)\w+\.\w+\sSIP\/2\.0$/)
In Section
Seekers of Perl Wisdom
|
|