I'm trying to validate a filename string in Angular2 form. The filename string cannot be all dots and cannot contain this characters \ / ? * " : < > |
I solve the second requirement and my regex looks like this:
Validators.pattern('^[^\\\\:\*\?\"\<\>\|\/]+$')
but I'm not sure how to solve the dots requirement.