Regexp - Allow chinese word or N/A ONLY

前端 未结 1 335
天涯浪人
天涯浪人 2020-12-22 14:30
/^[\\u0391-\\uFFE5\\.\\-\\,\\(\\)]*$/

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

Then after i Changed



        
相关标签:
1条回答
  • 2020-12-22 15:31

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

    /^(?:[\u0391-\uFFE5.,()-]|N\/A)*$/
    
    0 讨论(0)
提交回复
热议问题