Finding different type of single quotes in javascript
Finding different type of single quotes in javascript My requirement: There are three strings with single quotes of different types(like -> '‘’) and when I search with a single quote(i.e -> ') I should get the index of the single quote in all the cases. e.g: var str1 = "this is someone's question" var str2 = "this is someone‘s question" var str3 = "this is someone’s question" str.indexOf("'"); -> This statement should find single quotes (', ‘ and ’) in all the three variables. Just like the google chrome find works in web page search. Thanks in advance str.indexOf("'"); they're different characters. you will need 3 statements or regex – Philipp Sander Jun 29 at 11:03 Google likely either normalizes this, or just searches for t...