Got more questions? Find advice on: ASP | SQL | XML | Windows
Welcome to RegexAdvice Sign in | Join | Help

RegEx which checks for specific chars

  •  04-07-2008, 5:13 PM

    RegEx which checks for specific chars

    Hi,

     How can I build a RegEx which has following constraints?

      my input string can either be empty or it can contain any combination of N, C, M, Y, 0 , /     ie if my input string is not empty then it should contain only these chars.

     examples of valid input: NNCC, CCNN, MM/YYYY etc

    Thanks in advance,

    kvin 

    Filed under:
View Complete Thread