Kev'n Roberts

Browse by Tags

All Tags » RegEx (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...
Legacy URLs and RegEx
At my day job, we're in the process of an enterprise re-write. The old stuff is a hodge-podge of Cold Fusion, Java, J# and C#. The website is Cold Fusion so the URLs often look something like this: http://www.example.com/products/product_details/index...
Posted: Apr 09 2008, 09:45 PM by kevnroberts | with no comments
Filed under:
More Posts