Hey guys
I have a string and I am using split() function on it like this
but the above statement only splits on a blank space. I also want to split on ":" and "-". How do I do that.
I tried the following statement but it didnt work
any suggestions
I have a string and I am using split() function on it like this
Code:
var words = s.value.split(" ");
but the above statement only splits on a blank space. I also want to split on ":" and "-". How do I do that.
I tried the following statement but it didnt work
Code:
var words = s.value.split(" |:|-");
any suggestions