RE: [PHP] Regex Help for URL's [ANSWER]
| From: | Chrome | Date: | Wed, 17 May 2006 00:39:48 +0000 |
| Subject: | RE: [PHP] Regex Help for URL's [ANSWER] | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-236315@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Robert Samuel White [mailto:rsw@rswfire.com]
> Sent: 17 May 2006 01:28
> To: php-general@lists.php.net
> Subject: RE: [PHP] Regex Help for URL's [ANSWER]
>
> In my opinion, it is the most reasonable solution. I have looked all over
> the web for something else, but this works perfectly for me. It's
> impossible to tell where an url starts and ends if you don't have it in
> quotes or single quotes. If someone really needs to find all the urls in
> a
> page, then they'll code their pages to make use of this limitation.
>
> -----Original Message-----
> From: Chrome [mailto:admin@chrome.me.uk]
> Sent: Tuesday, May 16, 2006 8:24 PM
> To: 'Robert Samuel White'; php-general@lists.php.net
> Subject: RE: [PHP] Regex Help for URL's [ANSWER]
>
>
> > -----Original Message-----
> > From: Robert Samuel White [mailto:rsw@rswfire.com]
> > Sent: 17 May 2006 01:16
> > To: php-general@lists.php.net
> > Subject: RE: [PHP] Regex Help for URL's [ANSWER]
> >
> > All pages used by my content management system must be in a valid
> format.
> >
> > Old-school style pages are never created so the solution I have come up
> > with
> > is perfect for my needs.
> >
> > Thank you.
>
> Doesn't that make it a proprietary solution? IMHO offering the regex may
> create a false situation for people... So the answer may not be for
> everyone
>
> Might be wrong :)
>
> Dan
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> __________ NOD32 1.1542 (20060516) Information __________
>
> This message was checked by NOD32 antivirus system.
> http://www.eset.com
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