[Sussex] [OT kinda] PHP and regex (almost solved! Gareth can help on this one!) ;o)

Macdonald-Wallace, Matthew J s0209208 at glos.ac.uk
Mon Nov 25 20:07:00 UTC 2002


Can you help with why the loop isn't working?

My eyes must be shot to blazes tonight!

$pattern= '<a href="[^"]*[^"]*">*[A-Z0-9 ]+</a>';

if(eregi($pattern, $contents, $quote))
echo $number."<br />";
for($i=0; $i <= $number; $i++)
	$body .= $quote[$i]."\n";
	echo "no quote available";
mail("fruitloop at cowsontour.com","Test",$body);



>-----Original Message-----
>From: Gareth Ablett [mailto:garethablett at phpw.fsnet.co.uk]
>Sent: 25 November 2002 20:04
>To: sussex at mailman.lug.org.uk
>Subject: RE: [Sussex] [OT kinda] PHP and regex
>for once a question I can help with and some one beets me to it.
>oh well maby next time.
>Gareth Ablett
>The above information is confidential to the addressee and may be
>privileged.  Unauthorised access and use is prohibited.
>Internet communications are not secure and therefore this Body 
>does not accept legal responsibility for the contents of this 
>If you are not the intended recipient, any disclosure, copying, 
>distribution or any action taken or omitted to be taken in 
>reliance on it, is prohibited and may be unlawful. unlawful. 
>Sussex mailing list
>Sussex at mailman.lug.org.uk

More information about the Sussex mailing list