String split
-
Hello I just want to split a string String a = "this is a simple_sebastian_task"; I want to split it into two seperate it into two like "this is a simple" & "task" Any clue would be appreciated Thanks Sebastian
-
Hello I just want to split a string String a = "this is a simple_sebastian_task"; I want to split it into two seperate it into two like "this is a simple" & "task" Any clue would be appreciated Thanks Sebastian
-
Hello I just want to split a string String a = "this is a simple_sebastian_task"; I want to split it into two seperate it into two like "this is a simple" & "task" Any clue would be appreciated Thanks Sebastian
You have given a subject of 'String split' but could not find the string.split method? I feel I should give you the code so you don't mess it up...
string[] newStrings = "this is a simple_sebastian_task".Split(new string[]{"_sebastian_"}, StringSplitOptions.RemoveEmptyEntries);
Life goes very fast. Tomorrow, today is already yesterday.
modified on Friday, October 23, 2009 8:53 AM
-
You have given a subject of 'String split' but could not find the string.split method? I feel I should give you the code so you don't mess it up...
string[] newStrings = "this is a simple_sebastian_task".Split(new string[]{"_sebastian_"}, StringSplitOptions.RemoveEmptyEntries);
Life goes very fast. Tomorrow, today is already yesterday.
modified on Friday, October 23, 2009 8:53 AM
Hello, I have got the solution by using INDEXOF and SUBSTRING... but now I think this is the best method.. Thanks for the help
-
Hello, I have got the solution by using INDEXOF and SUBSTRING... but now I think this is the best method.. Thanks for the help