i am trying to create a pattern that accept everything without word characters (a-z or A-Z) in angular.
phone: new FormControl(null, [
Validators.required,
Validators.pattern("^-?[0-9]\d*(\.\d{1,2})?$"),
]),
i try this patter but not work fine because my goal is:
pattern must accept :
()*#%&#@64582 (example 1)
3796592#$#@$%^&$&/ (exapmle 2)
34242+5334?@^#$#%4242 (example 3)
That mean everything without (a-z or A-Z)
Pattern must not accept :
$%$@#423URVB
t3653$^%#&#%&
Any idea ?