//positive integers/^[0-9]*[1-9][0-9]*$/;//Negative integer/^-[0-9]*[1-9][0-9]*$/;//positive floating point number/^ ([0-9]+\. [0-9]*[1-9][0-9]*) | ([0-9]*[1-9][0-9]*\. [0-9]+) | ([0-9]*[1-9][0-9]*)) $/;//Negative floating point number/^ (-([0-9]+\. [0-9]*[1-9][0-9]*) | ([0-9]*[1-9][0-9]*\. [0-9]+) | ([0-9]*[1-9][0-9]*))) $/;//floating point number/^ (-?\d+) (\.\d+) $/;//Email Address/^[\w-]+ (\.[ \w-]+) *@[\w-]+ (\.[ \w-]+) +$/;//URL address/^[a-za-z]+://(\w+ (-\w+) *) (\. ( \w+ (-\w+) *) * (\?\s*) $/;//year/month/day (year-month-day, year, month, day)/^ (19|20) \d\d[-/.] (0[1-9]|1[012]) [- /.] (0[1-9]| [12] [0-9]|3[01]) $/;//match Chinese characters/[\u4e00-\u9fa5]/;//matches the account number is legal (the letter begins, allows 5-10 bytes, allows alphanumeric underline)/^[a-za-z][a-za-z0-9_]{4,9}$/;//Regular expressions that match blank lines/\n\s*\r/;//Match China postcode/[1-9]\D{5} (?! \d)/;//Match ID/\d{15}|\d{18}/;//Match domestic phone number/(\d{3}-|\d{4}-)? (\d{8}|\d{7})?;//Match IP Address/((2[0-4]\d|25[0-5]| [01]?\d\d?] \.) {3} (2[0-4]\d|25[0-5]| [01]?\d\d?] /;//Regular expressions that match the whitespace characters/^\s*|\s*$/;//regular expressions that match HTML tags< (\s*?) [^>]*>.*?| <. *? />;
Regular expressions common to native JavaScript