How do I remove accentuated characters from a string? Especially in IE6, I had something like this:
accentsTidy = function(s){ var r=s.toLowerCase();
You can create regex's in multiple ways. Using the new RegExp-constructor:
RegExp
var re = new RegExp("[a-z]", "ig") //(string pattern, string modifiers)
Or using the regex literal notation:
var re = /[a-z]/ig; // /pattern/modifiers
You have mixed the two.