Last updated on May 23rd, 2010 at 10:50 pm

VN:F [1.9.22_1171]
Rating: 4.3/10 (3 votes cast)

Hello Guys…Here i am back again with yet another simple tutorial on how to replace non alphanumeric characters using javascript.
[myAds]

<script language="JavaScript">
var temp = new String('This is a te!!!!st st>ring... So??? What...');
document.write(temp + '<br />');
temp =  temp.<b style="color:black;background-color:#ffff66">replace</b>(/[^a-zA-Z 0-9 ]+/g,'');
document.write(temp + '<br />');
</script>

Just check this out…Its really amazing…Get back to me if any questions? thanks bye 🙂

VN:F [1.9.22_1171]
Rating: 4.3/10 (3 votes cast)

Leave a Reply

Your email address will not be published. Required fields are marked *