title: regex validation for input text field
body: <p>I have to write a regex to make the input text field alphanumeric and do not allow hyphen at the beginning and at the end but can accept hyphen at the middle of the string</p>