Tuesday, 6 August 2013

Split on multiple characters

Split on multiple characters

I'm doing this to split a string on pipes. wordarray = comments.split("\|");
I want that string to be split on both pipes and colons :
Is there a way I can combine those into command? Something like wordarray
= comments.split("\|",":")
Note, i want it to split on all the occurences not just the first one

No comments:

Post a Comment