RE: [PHP] Regex Help for URL's [ANSWER]
| From: | Robert Samuel White | Date: | Wed, 17 May 2006 00:42:13 +0000 |
| Subject: | RE: [PHP] Regex Help for URL's [ANSWER] | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-236316@lists.php.net to get a copy of this message | ||
> If we are talking clickable links, why not focus on the <a> construct
> itself? Otherwise URLs are just part of the page's textual content... Very
> difficult to parse that
> Disseminating an <a> tag isn't brain-meltingly difficult with a regex if
> you put your mind to it... With or without quotes, be they single, double
> or non-existent
>If I've misunderstood please chastise me :)
>HTH
>Dan
Dan,
That's what I was doing. I was parsing A:HREF, IMG:SRC, etc.
But when I implemented a new feature on my network, where you could click on
a row and have it take you to another domain, I need a better solution.
Go to http://www.enetwizard.ws and it might make more sense.
All the links on the left have an ONCLICK=location.href = '' attribute in
the TR tag.
This solution allowed me to make sure those links included the session
information, just like the A:HREF links do.
It also had the advantage of updating the links in my CSS.