Use this regex:
var yourString="hello word:1235 tsfa";
var patt1=/:(\w*)/;
alert(yourString.match(patt1)[1]);
working jsFiddle
solved Get value from a JS string [closed]
Use this regex:
var yourString="hello word:1235 tsfa";
var patt1=/:(\w*)/;
alert(yourString.match(patt1)[1]);
working jsFiddle
solved Get value from a JS string [closed]