By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,818 Members | 2,121 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,818 IT Pros & Developers. It's quick & easy.

line break pb

P: n/a
Hi,

I have this kind of code:
Items[0]=['<a
href="#x1">1st</a>']
Items[1]=['<a
href="#x2">2nd</a>']
....
I need to transform it or treat it to have just:
Items[0]=['<a href="#x1">1st</a>']
Items[1]=['<a href="#x2">2nd</a>']
without the line breaks.

Can anybody help me please.
Thanks

-steeve

Oct 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hm.. see "replace" method of string type.

Exmaple Items[0] = Items[0].replace("\n", ""); or
Items[0] = Items[0].replace("\n\r", "");

st********@SoftHome.net писал(а):
Hi,

I have this kind of code:
Items[0]=['<a
href="#x1">1st</a>']
Items[1]=['<a
href="#x2">2nd</a>']
...
I need to transform it or treat it to have just:
Items[0]=['<a href="#x1">1st</a>']
Items[1]=['<a href="#x2">2nd</a>']
without the line breaks.

Can anybody help me please.
Thanks

-steeve


Oct 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.