module BbsUploader::RubyRegex
Constants
- CreditCard
CreditCard
Validates Credit Card numbers, Checks if it contains 16 numbers in groups of 4 separated by -, space or nothing- DBDate
Date DB format YYYY-MM-DD I know it will validate 2001-02-31 but is I think we are focusing in formats more than in parsing
- DBDateTime
Date Time DB format YYYY-MM-DD hh:mm:ss
- DeliciousUsername
Del.icio.us username
- Dni
Dni
(spanish ID card)- Domain
Email
From the email regex research: fightingforalostcause.net/misc/2006/compare-email-regex.php Authors: James Watts and Francisco Jose Martin Moreno- GeneralPostalCode
General postal code Validates a 5 digits postal code
- GithubUsername
Github username
- IBAN
IBAN
Source: snipplr.com/view/15322/iban-regex-all-ibans/ You have to remove spaces or any separator character from the original field before use this regex- MacAddress
- MasterCard
MasterCard
credit cardSlideshare username
- SpanishBankAccountNumber
- TwitterUsername
Twitter username
- USSocialSecurity
US Social Security
- UUID
UUID
Validates aUUID
as defined: en.wikipedia.org/wiki/Universally_unique_identifier- Url
URL
- Username
Username
This regular expression doesn't validate username's length- Visa
Visa
credit card- ZIPCode
US ZIP code Validates US ZIP
Code
(basic and extended format)