Lessons I've learned throughout the years to keep up with my habits.
Nothing will make you skip your habits more than the lack of motivation
- Believe you can
- Watch motivational videos
import {FormControl} from '@angular/forms'; | |
export class EmailValidator { | |
static isValid(control: FormControl){ | |
var re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(control.value); | |
if (re){ | |
return null; |