> -----Original Message----- > From: Robert Samuel White [mailto:rsw@xxxxxxxxxxx] > Sent: 17 May 2006 01:42 > To: php-general@xxxxxxxxxxxxx > Subject: RE: Regex Help for URL's [ANSWER] > > > > 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. Ooooo that breaks accessibility standards! Compliment the 'onclick's with onkeydown at least :) But still you get a solid onclick=... scenario If these are visible in the source then they are fairly easy to pick out Though you may need more than 1 regex ;) My complaint here is, don't break accessibility :) Dan -- http://chrome.me.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php