im working in Angular 13 project i want to create a directive to allow user only type numbers and '/' foor my date input. dd/mm/yyyy. this is my Regx : if (!String(myVal).match(new RegExp(/^\d+$/))) { event.preventDefault(); } this condition is working but i can type only numbers can't type / to format my date. any suggestion to moify my Regx. Regards Continue reading...