PDA

View Full Version : matching and no match question


bazz
12-16-2007, 02:35 PM
Hi.

I have drawn a mental blank on this and ask for a quick bit of help.
I am trying to write a conditional statement where there is a match of one value but no match of the other. I don't seem to be able to recall the 'no match' snippet highlighted.


if ($webPage =~ /baseBusiness/ && $webPage !=~ /nearbyBusiness/ ){




Any help you can offer will be really welcome.

bazz

oesxyl
12-16-2007, 03:58 PM
if ($webPage =~ /baseBusiness/ && $webPage !~ /nearbyBusiness/ ){


best regards

bazz
12-16-2007, 05:21 PM
Thanks but I should have saved you some time by my coming back again to post the answer I found. (same as yours btw).

I got taken away on a wave of successful coding :) and have made good progress today. I wish it were like that every day. :rolleyes:

bazz