2016-04-19 11 views

Antwort

0

Dies wird nach Zahlen in Ihrem Text suchen.

var text = "PR-1333|testtt"; 

var number = text.match(/\d+/g); // this returns an array of all that it found. 

console.log(number[0]); // 1333 
Verwandte Themen