On Mon, 26 Jul 2004 11:44:04 +0800
Jason Wong <[EMAIL PROTECTED]> wrote:

> On Monday 26 July 2004 10:05, Wudi wrote:
> 
> > Thank you. I have found a method to get links. But it's slow.
> > The script replaced the links, marked it.
> > And then foreach() all texts were marked.
> > But the blank space always make troubles.
> 
> As you haven't posted any code nor described the problem in any detail I can 
> only take a wild guess that you want to take a look at urlencode(), 
> rawurlencode().

I read perlre just now, it's very long and very complex.
Now, I can use the following script to parse link tags:
    $html = preg_replace("/(<A )([^>]+)(>)([^<]+)(<\/A>)/e", 
"\$this->ParseTagA(\"$2\", \"$4\")", $html);
It works well and fast.
I use "%20" and "%3D" replace " " and "=" to remove the problem about
blank space and equal sign.
--------------------------------------------------
Comment: English is not my first language.
Wudi <[EMAIL PROTECTED]>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to