Re: [PHP] Trivial newbie regex question

2002-11-14 Thread Jonathan Sharp
l Message- >>>From: Jonathan Sharp [mailto:js-lists@;sharpmedia.net] >>>Sent: Wednesday, November 13, 2002 10:50 PM >>>To: [EMAIL PROTECTED] >>>Cc: 'Charles Wiltgen'; 'List ? PHP General' >>>Subject: Re: [PHP] Trivial newbie reg

Re: [PHP] Trivial newbie regex question

2002-11-13 Thread Charles Wiltgen
Hello, Many thanks for the responses! It's working great now... -- Charles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Trivial newbie regex question

2002-11-13 Thread Jonathan Sharp
Message- >>From: Jonathan Sharp [mailto:js-lists@;sharpmedia.net] >>Sent: Wednesday, November 13, 2002 10:50 PM >>To: [EMAIL PROTECTED] >>Cc: 'Charles Wiltgen'; 'List ? PHP General' >>Subject: Re: [PHP] Trivial newbie regex question >> >>

RE: [PHP] Trivial newbie regex question

2002-11-13 Thread John W. Holmes
Wiltgen'; 'List ? PHP General' > Subject: Re: [PHP] Trivial newbie regex question > > but my way is so pretty! i mean, who cares if it doesn't work 'exactly' > as you want, we're going for the ballpark solution right??? > > fine... > sub

Re: [PHP] Trivial newbie regex question

2002-11-13 Thread Jonathan Sharp
]*)\.html$~', $source, $dest); > ereg('/([^/]*)\.html$',$source,$dest); > > ---John Holmes... > > >>-Original Message- >>From: Jonathan Sharp [mailto:js-lists@;sharpmedia.net] >>Sent: Wednesday, November 13, 2002 10:34 PM >>To: Charles W

Re: [PHP] Trivial newbie regex question

2002-11-13 Thread Justin French
Maybe also check out http://www.php.net/parse_url and http://www.php.net/pathinfo Justin French on 14/11/02 1:33 PM, Jonathan Sharp ([EMAIL PROTECTED]) wrote: > try basename('http://www.domain.com/stuff/index.html'); > > -js > > > Charles Wiltgen wrote: >> Hello, >> >> I just want to get t

RE: [PHP] Trivial newbie regex question

2002-11-13 Thread John W. Holmes
([^/]*)\.html$~', $source, $dest); ereg('/([^/]*)\.html$',$source,$dest); ---John Holmes... > -Original Message- > From: Jonathan Sharp [mailto:js-lists@;sharpmedia.net] > Sent: Wednesday, November 13, 2002 10:34 PM > To: Charles Wiltgen > Cc: List ˆ PHP Gen

Re: [PHP] Trivial newbie regex question

2002-11-13 Thread Jonathan Sharp
try basename('http://www.domain.com/stuff/index.html'); -js Charles Wiltgen wrote: > Hello, > > I just want to get the "index" part of "http://www.domain.com/stuff/ > index.html". > > I'm trying to figure out this regex stuff, but it hasn't yet clicked. > Here's my best guess: > > ereg('?

[PHP] Trivial newbie regex question

2002-11-13 Thread Charles Wiltgen
Hello, I just want to get the "index" part of "http://www.domain.com/stuff/ index.html". I'm trying to figure out this regex stuff, but it hasn't yet clicked. Here's my best guess: ereg('?/(*)\.html$', $source, $dest); To me -- and please be gentle -- this means, "Starting with the forward