url validation in formcontrol angular 8

Solutions on MaxInterview for url validation in formcontrol angular 8 by the best coders in the world

showing results for - "url validation in formcontrol angular 8"
Emilie
16 Nov 2020
1const reg = '(https?://)?([\\da-z.-]+)\\.([a-z.]{2,6})[/\\w .-]*/?';  this.form = fb.group({  url: ['', [Validators.required, Validators.pattern(reg)]]})