On May 16, 2006, at 7:53 PM, Chrome wrote:
-Original Message-
From: Robert Samuel White [mailto:[EMAIL PROTECTED]
Sent: 17 May 2006 01:42
To: php-general@lists.php.net
Subject: RE: [PHP] Regex Help for URL's [ANSWER]
That's what I was doing. I was parsing A:HREF, IMG:SRC, etc
In case any one is looking for a solution to a similar problem as me, here
is the answer. I used the code from my original post as my guiding light,
and with some experimentation, I figured it out.
To get any URL, regardless of where it is located, use this:
preg_match_all(#\'http://(.*)\'#U,
On Tue, 2006-05-16 at 18:49, Robert Samuel White wrote:
In case any one is looking for a solution to a similar problem as me, here
is the answer. I used the code from my original post as my guiding light,
and with some experimentation, I figured it out.
To get any URL, regardless of where
On Tue, May 16, 2006 6:21 pm, Robert Cummings wrote:
On Tue, 2006-05-16 at 18:49, Robert Samuel White wrote:
In case any one is looking for a solution to a similar problem as
me, here
preg_match_all(#(\|')http://(.*)(\|')#U, $content, $matches);
And it's missing the original requirement of
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.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
-Original Message-
From: Robert Samuel White [mailto:[EMAIL PROTECTED]
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
, then they'll code their pages to make use of this limitation.
-Original Message-
From: Chrome [mailto:[EMAIL PROTECTED]
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
-Original Message-
From: Robert Samuel White [mailto:[EMAIL PROTECTED]
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
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
-Original Message-
From: Robert Samuel White [mailto:[EMAIL PROTECTED]
Sent: 17 May 2006 01:42
To: php-general@lists.php.net
Subject: RE: [PHP] Regex Help for URL's [ANSWER]
If we are talking clickable links, why not focus on the a construct
itself? Otherwise URLs are just
10 matches
Mail list logo