public addressPattern: string = "^([^\s]*[A-Za-z0-9][\s]{0,1})*$";
this is how i written but it allowing the space in the begining and ending also.which i need to show error at that time.
public addressPattern: string = "^([^\s]*[A-Za-z0-9][\s]{0,1})*$";
this is how i written but it allowing the space in the begining and ending also.which i need to show error at that time.