OK,
I got the regex part solved, can anyone tell me why this loop is only
producing one quote when at least 10 are being red into the array?
$number=count($quote);
echo $number."<br />";
for($i=0; $i < $number; $i++)
{
echo $quote[$i];
}
}
else
{
echo "no quote available";
}
I think my eyes are going tonight... :o)
TIA,
Matt
>-----Original Message-----
>From: Macdonald-Wallace, Matthew J [mailto:[EMAIL PROTECTED]]
>Sent: 25 November 2002 19:00
>To: [EMAIL PROTECTED]
>Subject: [wdvltalk] PHP and regular expressions
>
>
>All,
>
>I'm trying to get certain parts of a page to display on another without
>using an include(..).
>
>I'm doing this purely as an exercise to see if its possible,
>what I want to
>do is strip the URLS from a page and list them like so:
>
>Link 1 = <a href="http....">Text of link 1</a>
>Link 2 = <a href="http....">Text of link 2</a>
>Link 3 = <a href="http....">Text of link 3</a>
>...
>
>Would I be correct in thinking that the regular expression
>would be along
>the lines of:
>
>"^<a href[\"\'A-Za-z0-9_+\.+\"\']>[A-Za-z0-9+\.A-Za-z0-9+]</a>"
>
>Coz this isn't working! :o)
>
>Help!
>
>TIA,
>
>Matt
>
>____ * The WDVL Discussion List from WDVL.COM * ____
>To Join wdvltalk, Send An Email To:
>mailto:[EMAIL PROTECTED]
> Send Your Posts
>To: [EMAIL PROTECTED]
>To change subscription settings to the wdvltalk digest version:
> http://wdvl.internet.com/WDVL/Forum/#sub
>
>________________ http://www.wdvl.com _______________________
>
>You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
>To unsubscribe send a blank email to
>%%email.unsub%%
>
____ � The WDVL Discussion List from WDVL.COM � ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED]
Send Your Posts To: [EMAIL PROTECTED]
To change subscription settings to the wdvltalk digest version:
http://wdvl.internet.com/WDVL/Forum/#sub
________________ http://www.wdvl.com _______________________
You are currently subscribed to wdvltalk as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]