Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: What is regular expression for the following thing?by ikegami (Patriarch) |
on Oct 20, 2008 at 09:07 UTC ( [id://718168]=note: print w/replies, xml ) | Need Help?? |
/^REGISTER|INVITE|BYE\s\w\.\w\sSIP\/2.0/
There's also the issue that the last "." should be "\.". There's also the issue that the "\w" doesn't match what you want it to match. You'll have to use a character class ([...]) instead.
In Section
Seekers of Perl Wisdom
|
|