「2500 - SomeValue」という文字列があります。「SomeValue」の「S」より前のすべてを削除するにはどうすればよいですか?
var x = "2500 - SomeValue";
var y = x.substring(x.lastIndexOf(" - "),
// this is where I'm stuck, I need the rest of the string starting from here.
助けてくれてありがとう。
~ck
「2500 - SomeValue」という文字列があります。「SomeValue」の「S」より前のすべてを削除するにはどうすればよいですか?
var x = "2500 - SomeValue";
var y = x.substring(x.lastIndexOf(" - "),
// this is where I'm stuck, I need the rest of the string starting from here.
助けてくれてありがとう。
~ck