Zurev Posted January 11, 2011 Share Posted January 11, 2011 Let's have it! This is the most complex one I was able to find by google: http://ex-parrot.com/~pdw/Mail-RFC822-Address.html However I'd rather most complex that are practical Here's an interesting one, validates dates from the year 1600-9999 including leap years in a mm/dd/yyyy format: ~^(((0[1-9]|[12]\d|3[01])\/(0[13578]|1[02])\/((19|[2-9]\d)\d{2}))|((0[1-9]|[12]\d|30)\/(0[13456789]|1[012])\/((19| [2-9]\d)\d{2}))|((0[1-9]|1\d|2[0-8])\/02\/((19|[2-9]\d)\d{2}))|(29\/02\/((1[6-9]|[2-9]\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))))$~ Anyway, let's see what you've got! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.