var text = "old!\"№;%ХЪ{}][--_()/."; alert(text.replace(/[^a-zA-Zа-яА-Я._()\u005B\u005D\s-]/gi, ""));