PHP Classes
elePHPant
Icontem

validation: Validation with non-regular expression patterns

Recommend this page to a friend!
  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 (12 years ago) RSS 2.0 feedStarStarStar 59%Total: 3,810 All time: 814 This week: 897Down
Version License Categories
validation 1.0GNU General Publi...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

  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,810
This week:0
All time:814
This week:897Down
User Ratings User Comments (1)
 All time
Utility:87%StarStarStarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:83%StarStarStarStarStar
Tests:-
Videos:-
Overall:59%StarStarStar
Rank:1202