8 Replies Latest reply: Mar 28, 2014 9:59 AM by Jitendra RSS

    Validate item value only with alphabets and hyphen

    Jitendra

      Hi Experts,

       

      I have one text field item , i want to create validation like

      it should contain hyphen as a separator

      example :- 

        valid entry

        A-B

        AA-BB-CC

       

      Invalid Entry

        -A,  A-,AA-AB-,-BC-CC- etc

       

      i have tried some regular expressions but didn't got the  solution,

      please suggest me some solution

       

      Regards,

      Jitendra