Let’s if I have many split delimiters that I am going to use. How can I write a script in Jquery to determine the which delimiter to use for such case?
eg: ee 11
ee|11
ee|11
ee-11
If we take the above example, It should be spitted by checking the useage of delimiters – from the above list since ‘|’ is twice, split should be done with ‘|’ delimiter.
Any help would be appreciated thanks
You could just split on either…
jsFiddle.