Tutorials to .com

Tutorials to .com » Asp » Skills » Authentication commonly used regular expressions

Authentication commonly used regular expressions

Print View , by: iSee ,Total views: 7 ,Word Count: 177 ,Date: Sat, 22 Aug 2009 Time: 10:07 PM

China's phone number to match the form of authentication such as :0511-4405222 or 021-87888822 or 021-44055520-555 or (0511) 4405222
Regular expression "((d (3,4)) | d (3,4) -)? D (7,8) (-d (3)) *"

China's postal code match the form of authentication such as: 215,421
Regular expression "d (6)"

Match the form of authentication, such as e-mail: justali@justdn.com
Regular expression "w +([-+.] w +) * @ w +([-.] w +) *. w +([-.] w +) *"

Match the form of identity verification, such as: 15 or 18 regular expression identity "d (18) | d (15)"

Commonly used to verify the number of regular expressions
"d (n)" n to the provisions of the length of
"d (n, m)" n to m the length of the scope of

Illegal character to verify matching illegal characters such as: <> & / '|
Regular Expression [^<>&/|' \] +

Match the form of authentication such as the date of: 20030718,030718
Scope :1900 - 2099
Regular expression ((((19) (1) | (20) (1)) d (2)) | d (2)) [01] (1) d (1) [0-3] (1) d (1)


ASP skills Articles


Can't Find What You're Looking For?


Rating: Not yet rated

Comments

No comments posted.