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
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
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
>>
>>
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
]*)\.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
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
([^/]*)\.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
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('?
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
9 matches
Mail list logo