how to use regex pattern in angular 6