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

Gareth Ablett garethablett at phpw.fsnet.co.uk
Mon Nov 25 22:04:01 UTC 2002


what is outputting atm?


Gareth,

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))
{
$number=count($quote);
echo $number."<br />";
for($i=0; $i <= $number; $i++)
	{
	$body .= $quote[$i]."\n";
	}
}
else
{
	echo "no quote available";
}
fclose($fp);
mail("fruitloop at cowsontour.com","Test",$body);

TIA,

Matt

>-----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 
>message.
> 
>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
>http://mailman.lug.org.uk/mailman/listinfo/sussex
>

_______________________________________________
Sussex mailing list
Sussex at mailman.lug.org.uk
http://mailman.lug.org.uk/mailman/listinfo/sussex





More information about the Sussex mailing list