Re: [PHP] Regex Help for URL's

2006-05-17 Thread Kevin Waterson
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 fou

Re: [PHP] Regex Help for URL's [ANSWER]

2006-05-17 Thread Edward Vermillion
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,

RE: [PHP] Regex Help for URL's [ANSWER]

2006-05-16 Thread Chrome
> -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 cons

RE: [PHP] Regex Help for URL's [ANSWER]

2006-05-16 Thread Robert Samuel White
> If we are talking clickable links, why not focus on the construct > itself? Otherwise URLs are just part of the page's textual content... Very > difficult to parse that > Disseminating an tag isn't brain-meltingly difficult with a regex if > you put your mind to it... With or without quotes,

RE: [PHP] Regex Help for URL's [ANSWER]

2006-05-16 Thread Chrome
> -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 ov

RE: [PHP] Regex Help for URL's [ANSWER]

2006-05-16 Thread Robert Samuel White
in a page, 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 [ANS

Re: [PHP] Regex Help for URL's

2006-05-16 Thread Richard Lynch
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.

RE: [PHP] Regex Help for URL's [ANSWER]

2006-05-16 Thread Chrome
> -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 for

RE: [PHP] Regex Help for URL's [ANSWER]

2006-05-16 Thread Robert Samuel White
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

RE: [PHP] Regex Help for URL's [ANSWER]

2006-05-16 Thread Richard Lynch
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 requirem

RE: [PHP] Regex Help for URL's [ANSWER]

2006-05-16 Thread Robert Cummings
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 whe

RE: [PHP] Regex Help for URL's [ANSWER]

2006-05-16 Thread Robert Samuel White
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",

RE: [PHP] Regex Help for URL's

2006-05-16 Thread Chrome
> -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

Re: [PHP] Regex Help for URL's

2006-05-16 Thread Jochem Maas
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 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 w

RE: [PHP] Regex Help for URL's

2006-05-16 Thread Robert Samuel White
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, b

Re: [PHP] Regex Help for URL's

2006-05-16 Thread John Nichel
us to do it for. Simple enough, don't you think. Because 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

2006-05-16 Thread Robert Cummings
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 > expression

RE: [PHP] Regex Help for URL's

2006-05-16 Thread Robert Samuel White
ite Cc: php-general@lists.php.net Subject: 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

Re: [PHP] Regex Help for URL's

2006-05-16 Thread Jochem Maas
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: ht

[PHP] Regex Help for URL's

2006-05-16 Thread Robert Samuel White
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: http(s)://x.y.z.domain.com/dir/