Search
 
SCRIPT & CODE EXAMPLE
 

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)]]})
Comment

PREVIOUS NEXT
Code Example
Javascript ::  
:: render css express js 
Javascript ::  
Javascript ::  
:: js map through array and return array of objects 
Javascript :: date difference moment js 
Javascript :: aes 256 nodejs 
::  
:: javascript emit event 
::  
Javascript ::  
Javascript ::  
::  
:: A simple static file server built with Node.js 
Javascript :: jquery id value input 
Javascript :: sentry erros 
Javascript :: midpoint formula javascript 
:: process.env 
Javascript :: react conditional array item 
::  
::  
::  
::  
Javascript ::  
Javascript ::  
::  
Javascript ::  
Javascript ::  
:: js delete json element 
::  
ADD CONTENT
Topic
Content
Source link
Name
5+9 =