Thank you!
-----Original Message-----
From: Jason Wong [mailto:[EMAIL PROTECTED]]
Sent: den 18 januari 2002 15:14
To: Tony Arnold; [EMAIL PROTECTED]
Subject: Re: [PHP] Regular Expressions...
On Friday 18 January 2002 22:09, Tony Arnold wrote:
> Howdy people... I want to extract the name of a hyperlink which looks
> like
> this:
>
> <a href="">this is the name!</a>
>
> I tried to do this:
>
> ereg(">([a-zA-Z0-9_. -]*)<",$hlink, $reg3);
>
> and it works if it only consists of the above characters, how can I
> tell ereg to include all characters? not only "a-zA-Z0-9_. -".
>
> / Tony...
Use .* as in:
ereg(">(.*)<",$hlink, $reg3);
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
/*
court, n.:
A place where they dispense with justice.
-- Arthur Train
*/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]