Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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)]]})
Source by hdtuto.com #
 
PREVIOUS NEXT
Tagged: #url #validation #formcontrol #angular
ADD COMMENT
Topic
Name
9+3 =