Posts by drumerwhite • 41 points
1 post
-
4
votes7
answers87300
viewsA: How to validate with regex a string containing only letters, whitespace and accented letters?
function removeSpecialCharSimple(strToReplace) { strSChar = "áàãâäéèêëíìîïóòõôöúùûüçÁÀÃÂÄÉÈÊËÍÌÎÏÓÒÕÖÔÚÙÛÜÇ"; strNoSChars = "aaaaaeeeeiiiiooooouuuucAAAAAEEEEIIIIOOOOOUUUUC"; var newStr = ""; for…