Welcome To Snipplr


Everyone's Recent Snippets Tagged validation



1 2 3 4 5 6 Next »
From railscast #41
2 65 posted 13 years ago by bordalix
a function to check the validity of the postcode according to UK rules
0 358 posted 13 years ago by valcartei
This code will validate not only the four octets contain between 1 and 3 numbers each, but also that the number they contain is between 0 and 255. In all, there are 3 different regex's that I tried and all seem to work fine. The three regex's a...
0 213 posted 13 years ago by numberwhun
3 108 posted 13 years ago by pablazo
6 174 posted 13 years ago by koncept
Uses the Luhn formula to quickly validate a credit card. Basically all the digits except for the last one are summed together and the output is a single digit (0 to 9). This digit is compared with the last digit ensure a proper credit card number is...
2 148 posted 13 years ago by savageideas
1 2 3 4 5 6 Next »