jquery - How to get the last part of a string in Javascript -


how part of string when string length unknown?

hello world

i need

world.

or

hello world weather fine.

i need

weather fine 

how split it?

var ws='hello world'  var w='hello world weather fine.'  var ss=w.split(ws);  for(i=0;i<ss.length;i++){     if(ss[i].length>0)     console.log(ss[i]);  }


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -