How can I validate a number with or without the '+' extension using regex?.
I am using reactive forms Angular 2 and as I have it at the moment the validation is done when the '+' is included only. When I omit the '+' extension the validation fails
['', [Validators.required, Validators.pattern('[+]{1}[0-9]+')]],
if you want [+] to be optional you can use
or