let regex = /[^A-Za-z0-9]+/
@"^d{10}$"
[A-Z0-9]*
export const onlyNumbersAndLetters = (value) => {
if(value)
return value.replace(/[^a-zA-Z0-9]/g, '');
}
console.log(`12331: ${/^d+$/.test('12331')}`) // true
console.log(`abc: ${/^d+$/.test('abc')}`) // false