string str="test | from \ chetan"
string[] Fname = str.Split(new Char[] { '"', '|', '\'' }, StringSplitOptions.RemoveEmptyEntries);
Result will be:
test
from
chetan
=> StringSplitOptions.RemoveEmptyEntries -
It remove blank from array
string[] Fname = str.Split(new Char[] { '"', '|', '\'' }, StringSplitOptions.RemoveEmptyEntries);
Result will be:
test
from
chetan
=> StringSplitOptions.RemoveEmptyEntries -
It remove blank from array
No comments:
Post a Comment