用Angular中的实际字符串验证模板字符串

There are different templates for different fields on form. for Endpoint there is Template <<hostname>>.XYZ.COM enter image description here

So User should only fill data in <<hostname>>, Correct input would be abc.XYZ.COM Invalid input can be abc.PQR.COM or any other string which is not matching with the template. there are many templates for other fields so how can i implement generic verification function for this in Angular?

评论