getValueFormEvent(event,regExp){
const value = event.target.value;
if(!regExp.test(value)){
return value;
}else{
const input = event.target;
let index = input.selectionStart;
setTimeout(()=>input.setSelectionRange(--index,index),0);
return value.replace(regExp,'')
}
}