Table of contents Home page
Execute this code
var w = window.open("blank.html", "blank", "height=50,width=470") w.document.write("<pre>") var s = "56-854-85-444-9" a = s.match(/[0-9]{3}/g) w.document.writeln(a.length + ' groups of 3 digits are present in "' + s + '":\n') for (var i = 0; i < a.length; i++) { w.document.writeln(a[i]) } w.document.write("</pre>")