Skip to content

Instantly share code, notes, and snippets.

@z2015
Created July 7, 2016 06:26
Show Gist options
  • Save z2015/cc15625f3aecbc4b7f17e0e4ef6dead2 to your computer and use it in GitHub Desktop.
Save z2015/cc15625f3aecbc4b7f17e0e4ef6dead2 to your computer and use it in GitHub Desktop.
Js Chinese Regex
var reg = /^([\u4e00-\u9fa5]+)(·[\u4e00-\u9fa5]+)?$/;
var filter=/^(([0\+]\d{2,3}-)?(0\d{2,3})-)?(\d{7,8})(-(\d{3,}))?$/; 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment