/* 录入英文,数字 ,+ _ - / . , : ; & % * # {} 【】 [] () () */ export function inputEnNum(v: string, isUpper = false) { const str = v.replace( /[^a-zA-Z0-9\+\_\-\.\,\:\;\&\%\*\#\{\}\【\】\[\]\(\)()]/g, '' ); return isUpper ? str.toUpperCase() : str; } /* 录入英文 不带字符 */ export function inputEnglishSpace(v: string, isUpper = false) { const str = v.replace(/[^a-zA-Z]/g, ''); return isUpper ? str.toUpperCase() : str; }