Answers for "url validation in formcontrol angular 8"

0

url validation in formcontrol angular 8

const reg = '(https?://)?([\\da-z.-]+)\\.([a-z.]{2,6})[/\\w .-]*/?';  this.form = fb.group({  url: ['', [Validators.required, Validators.pattern(reg)]]})
Posted by: Guest on November-09-2020

Code answers related to "url validation in formcontrol angular 8"

Code answers related to "Javascript"

Browse Popular Code Answers by Language