Re: Split string gives empty elementes
- From: Barry Kelly <barry.j.kelly@xxxxxxxxx>
- Date: Fri, 19 Jan 2007 01:34:44 +0000
md wrote:
I am trying to use the Split function to remove characters like ' ',
'=' and ';' from a string, but the problem is that if two delimiters
are next to each other, an empty element is inserted in the result
array. I can not use StringSplitOptions as I use .net 1.
Do you know, how can I get rid of these empty elemets?
Skip over them when iterating the array, or create a new array and only
copy across the non-empty elements.
-- Barry
--
http://barrkel.blogspot.com/
.
- References:
- Split string gives empty elementes
- From: md
- Split string gives empty elementes
- Prev by Date: lists, get last item, 2 second question
- Next by Date: Simple Inheritance : Creating derived classes from instances of base class.
- Previous by thread: Split string gives empty elementes
- Next by thread: IPV6 Multicast Sockets
- Index(es):
Relevant Pages
|
Loading