<reponame>JoMingyu/Flask-Validation
email = '^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$'
url = '^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w_\.-]*)*\/?$'
visa_card = '4\d{3}[\s-]?\d{4}[\s-]?\d{4}[\s-]?\d{4}'
master_card = '5[1-5]\d{2}[\s-]?\d{4}[\s-]?\d{4}[\s-]?\d{4}'
isbn = '(?:[\d]-?){9}[\dxX]'
hex = '^#?([a-f0-9]{6}|[a-f0-9]{3})$'
ipv4 = '^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$'
digit = '^[0-9]*$'
date = '^(19|20)?[0-9]{2}[- /.](0?[1-9]|1[012])[- /.](0?[1-9]|[12][0-9]|3[01])$'  # yyyy/mm/dd

email = '^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$'
url = '^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w_\.-]*)*\/?$'
visa_card = '4\d{3}[\s-]?\d{4}[\s-]?\d{4}[\s-]?\d{4}'
master_card = '5[1-5]\d{2}[\s-]?\d{4}[\s-]?\d{4}[\s-]?\d{4}'
isbn = '(?:[\d]-?){9}[\dxX]'
hex = '^#?([a-f0-9]{6}|[a-f0-9]{3})$'
ipv4 = '^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$'
digit = '^[0-9]*$'
date = '^(19|20)?[0-9]{2}[- /.](0?[1-9]|1[012])[- /.](0?[1-9]|[12][0-9]|3[01])$'  # yyyy/mm/dd
#?([a-f0-9]{6}|[a-f0-9]{3})$' # yyyy/mm/dd