Quantcast
Channel: Get everything after the dash in a string in JavaScript - Stack Overflow
Viewing latest article 12
Browse Latest Browse All 15

Answer by Cerebrus for Get everything after the dash in a string in JavaScript

$
0
0

AFAIK, both substring() and indexOf() are supported by both Mozilla and IE. However, note that substr() might not be supported on earlier versions of some browsers (esp. Netscape/Opera).

Your post indicates that you already know how to do it using substring() and indexOf(), so I'm not posting a code sample.


Viewing latest article 12
Browse Latest Browse All 15

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>