I know I can split a string based on one delimiter
e.g.
var field=input.value.split("/")[0]
will split a field input string at every "/"
I would like to give a user the option of using "/ "or "-" or "." as a delimiter.
I can't seem to get this to work as easily as in php.



Reply With Quote


Bookmarks