ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] string.split()
@ 2005-04-18 11:29 Alexey Morsov
  2005-04-18 11:36 ` Eugene A. Suchkov
  0 siblings, 1 reply; 3+ messages in thread
From: Alexey Morsov @ 2005-04-18 11:29 UTC (permalink / raw)
  To: ALT Linux Community

Привет,

Что-то я никак не пойму как же мне string.split() использовать со своими 
собственными разделителями...
делаю split(str,' ,') получаю в ответ разделение по пробелам но не по ',' :(
Или я что-то недогоняю?

-- 
Всего наилучшего,
Системный Администратор ЗАО "ИК "РИКОМ-ТРАСТ"
Алексей Морсов
ICQ: 196766290
Jabber: Samurai@jabber.pibhe.com
http://www.ricom.ru
http://www.fondmarket.ru


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Comm] string.split()
  2005-04-18 11:29 [Comm] string.split() Alexey Morsov
@ 2005-04-18 11:36 ` Eugene A. Suchkov
  2005-04-18 12:31   ` Alexey Morsov
  0 siblings, 1 reply; 3+ messages in thread
From: Eugene A. Suchkov @ 2005-04-18 11:36 UTC (permalink / raw)
  To: community

Hi, Alexey Morsov! You wrote 18.04.2005 15:29:
> Что-то я никак не пойму как же мне string.split() использовать со своими 
> собственными разделителями...
> делаю split(str,' ,') получаю в ответ разделение по пробелам но не по ',' :(

ИМХО, он вторым параметром хочет _один_ символ. Т.е. укажите 
split(str,','), а там обрежете, если надо...

-- 
With best regards
Eugene A. Suchkov (a.k.a CityHawk)
ICQ 177787156
http://www.livejournal.com/users/suchkoff/



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Comm] string.split()
  2005-04-18 11:36 ` Eugene A. Suchkov
@ 2005-04-18 12:31   ` Alexey Morsov
  0 siblings, 0 replies; 3+ messages in thread
From: Alexey Morsov @ 2005-04-18 12:31 UTC (permalink / raw)
  To: community


Eugene A. Suchkov wrote:
> Hi, Alexey Morsov! You wrote 18.04.2005 15:29:
> 
>>Что-то я никак не пойму как же мне string.split() использовать со своими 
>>собственными разделителями...
>>делаю split(str,' ,') получаю в ответ разделение по пробелам но не по ',' :(
> 
> 
> ИМХО, он вторым параметром хочет _один_ символ. Т.е. укажите 
> split(str,','), а там обрежете, если надо...
Так и есть... Спасибо :)


-- 
Всего наилучшего,
Системный Администратор ЗАО "ИК "РИКОМ-ТРАСТ"
Алексей Морсов
ICQ: 196766290
Jabber: Samurai@jabber.pibhe.com
http://www.ricom.ru
http://www.fondmarket.ru


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-04-18 12:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-18 11:29 [Comm] string.split() Alexey Morsov
2005-04-18 11:36 ` Eugene A. Suchkov
2005-04-18 12:31   ` Alexey Morsov

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git