I need to find all ' symbols in a string and then extract all the characters from the beginning of the string to the first occurrence of '. For example: I have Jon's and I need to get Jon. Could anyone help me?
I need to find all ‘ symbols in a string and then extract all
Share
How about using
split()method ?Sample : http://jsfiddle.net/aJpda/2/