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
This one time, at band camp, Robert Samuel White [EMAIL PROTECTED] wrote:
Don't be rude. I've already don't all of that. Nothing came up. I've been
programming for 20 years (since I was 11 years old) so I'm not a slacker
when it comes to learning new things, however, I have always found
Robert Samuel White wrote:
Can someone help me modify the following code?
It was designed to search for all instances of [LEVEL#]...[/LEVEL#]
I need a preg_match_all that will search for all of instances of an URL.
It should be sophisticated enough to find something as complicated as this:
: [PHP] Regex Help for URL's
Robert Samuel White wrote:
Can someone help me modify the following code?
It was designed to search for all instances of [LEVEL#]...[/LEVEL#]
I need a preg_match_all that will search for all of instances of an URL.
It should be sophisticated enough to find
On Tue, 2006-05-16 at 16:31, Robert Samuel White wrote:
Don't be rude. I've already don't all of that. Nothing came up. I've been
programming for 20 years (since I was 11 years old) so I'm not a slacker
when it comes to learning new things, however, I have always found regular
expressions
it makes the email hard to read.
Why is top posting bad?
-Original Message-
From: Jochem Maas [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 16, 2006 4:28 PM
To: Robert Samuel White
Cc: php-general@lists.php.net
Subject: Re: [PHP] Regex Help for URL's
Robert Samuel White wrote:
Can
I am trying to get all of the urls in a web document, so that I can append
information to the urls when needed (when the url points to a domain that
resides on my server). It allows me to pass session information across the
domains of my network. Currently, I use a class I wrote to handle this,
: Re: [PHP] Regex Help for URL's
Robert Samuel White wrote:
Can someone help me modify the following code?
It was designed to search for all instances of [LEVEL#]...[/LEVEL#]
I need a preg_match_all that will search for all of instances of an URL.
It should be sophisticated enough to find
-Original Message-
From: Robert Samuel White [mailto:[EMAIL PROTECTED]
Sent: 16 May 2006 21:32
To: php-general@lists.php.net
Subject: RE: [PHP] Regex Help for URL's
Don't be rude. I've already don't all of that. Nothing came up. I've
been
programming for 20 years (since I
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
On Tue, May 16, 2006 4:22 pm, Jochem Maas wrote:
personally I would assume anyone who had been programming for 20 yrs
would have a reasonable understanding of regexps.
Nope.
:-)
I got WAY past 20 year mark before I even began to pretend to
understand the minimal amount of regex I can do now.
, 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
19 matches
Mail list logo