Kev'n Roberts

Browse by Tags

All Tags » JavaScript (RSS)
Regular Expressions Are Your Friend
I recently came across this JavaScript code: function phonescrub(elmt){ str=elmt.value;str2="";ii=0; while (ii < str.length){ ch=str.charAt(ii); kk=0; while (kk < 10){ if (ch==""+kk){str2=str2+ch}; kk++; } ii++; } elmt.value=str2; } It's a little...
More Posts