Hi George. I think you'd have had an answer by now if there was
one. I can't think of anything but I wasn't willing to post and say
'it can't be done' without waiting for others' ideas.
George P. wrote:
> But now, I need to check for all classes other than "text";
>
> This has me stumped!!
>
> For eg:
> $str = '<TD class="text1">';
>
> $class = 'text[0-9]+'
> if ($str =~ /class="$class"/)
> {
> print "TAG has this class\n";
> }
I still don't understand exactly why you cant use
if ($str !~ /class="$class"/) {
print "TAG doesn't have this class\n";
}
or even something ugly like
if ($str =~ /class="$class"/) { }
else {
print "TAG doesn't have this class\n";
}
If you can describe to us a circumstance where you 'need' this
functionality I'm sure we'll come up with an answer.
Cheers,
Rob
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]