-1
/^[\u0391-\uFFE5\.\-\,\(\)]*$/

Sorry, new to regex. Had done this to allow only Chinese character.

Then after i Changed

/^[\u0391-\uFFE5\.\-\,\(\)(N/A)]*$/

Then it allows all Chinese character + A,NA, AN, N/A, A/N tried to change (N/A), (N/A),(N(/)A) yet all return the same result...

how if i wan only chinese character and exactly "N/A" only??

  • 1
    possible duplicate of [Reference - What does this regex mean?](http://stackoverflow.com/questions/22937618/reference-what-does-this-regex-mean) –  Mar 30 '15 at 03:41
  • This question shows little or no research and is not useful or clear. See: [How do I ask a good question?](http://stackoverflow.com/help/how-to-ask) – gfullam Mar 30 '15 at 06:25

1 Answers1

1

You need to use a capturing or non-capturing group.

/^(?:[\u0391-\uFFE5.,()-]|N\/A)*$/
Avinash Raj
  • 160,498
  • 22
  • 182
  • 229