The script removes characters from the list from a string.
function withoutCyr(input) { var value = input.value; var re = /а|б|в|г|д|е|ё|ж|з|и|ё|к|л|м|н|о|п|р|с|т|у|ф|х|ц|ч|ш|щ|ъ|ы|ь|э|ю|я|'|"|\?|<|>|\/|\\|:|;|!|#|%|\]|\[|&|^|\*|$|!|\+| /gi; if (re.test(value)) { value = value.replace(re, ''); input.value = value; } } The + sign is removed only the 2nd and subsequent ones, the 1st is not deleted.