Hi,
Can you please help my how to parse.
url = http://this/is/my/url/to/parse
how do i parse url to print "http://this/is/my/url/to";
i want to remove the last part of my url with is "parse". I would like to
remove the last string of my url.
i have try split, but i think it wont work as i dont
Thanks this is much more simple and is what i need.
On Sun, Feb 15, 2009 at 9:29 PM, Lie Ryan wrote:
> On Sun, 15 Feb 2009 14:22:09 +0100, Andre Engels wrote:
> > What is 'new' in your solution? Apart from that, the following looks
> > simpler:
> >
> url = "http://this/is/my/url/to/parse";
Hi,
I'm a newbie trying to learn python. Kindly help me on string formatting.
test = https://www.localhost.org/testmodule/dev/trunk/admin/sql/mytest.sql
what will i use to print this output?
1, https://www.localhost.org/
2. testmodule
3. /dev/trunk/admin/sql/mytest.sql
Thanks,
Jay
__
:29 AM, bob gailer wrote:
> Jay Jesus Amorin wrote:
>
>> Hi,
>>
>> I'm a newbie trying to learn python. Kindly help me on string formatting.
>>
>> test =
>> https://www.localhost.org/testmodule/dev/trunk/admin/sql/mytest.sql
>>
>> what wi