Login   Register  
PHP Classes
elePHPant
Icontem

validation: Validation with non-regular expression patterns

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2004-04-06 (10 years ago) RSS 2.0 feedStarStarStar 59%Total: 3,798 All time: 769 This week: 1,792Down
Version License Categories  
validation 1.0GNU General Public Lice...Text processing, Validation
Description Author  

This class is meant to validate text strings using patterns that are defined with a simple syntax that is not based on regular expressions.

Here are a few examples of validation patterns:

"2N 5L" = 2Numbers 1Whitespace 5Letters e.g.: "12 ABCDE"
"2-5N 5L" = 2-5Numbers 1Whitespace 5Letters e.g.: "1234 ABCDE"

"2N:2N:2N" would match on "12:35:24" for checking time
"2N.2N.4N" would match on "01.01.2004" for checking date

This package includes sub-classes to do more specific validations like verifying address data patterns.

Picture of Sven Wagener
Name: Sven Wagener <contact>
Classes: 10 packages by
Country: Germany Germany
Age: 34
All time rank: 131 in Germany Germany
Week rank: 117 Down6 in Germany Germany Down

  Files folder image Files  
File Role Description
Accessible without login Plain text file examples_validate.class.php Example Examples for working with base validation class
Accessible without login Plain text file validate.class.php Class Base validation class
Accessible without login Plain text file validate_address.class.php Class Validate address data

 Version Control Unique User Downloads Download Rankings  
 0%Total:3,798All time:769
 This week:0This week:1,792Down
User Ratings User Comments (1)  
 All time
Utility:87%StarStarStarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:83%StarStarStarStarStar
Tests:-
Videos:-
Overall:59%StarStarStar
Rank:918