regular expression matching
Jason White
jasona at inetarena.com
Wed Jun 5 15:56:17 CDT 2002
I usually only use regular expressions for substitutions s///g etc.
How exactly do I use a regular expression as a boolean value?
for example:
$service="cns-noc_server1";
$rule="cns-noc";
if( WHAT DO I PUT HERE){
print "$rule is in $service \n";
} else {
print "$rule isn't in $service \n";
}
Jason White
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/archives/pdx-pm-list/attachments/20020605/84ba6094/attachment.htm
More information about the Pdx-pm-list
mailing list