validation: Validation with non-regular expression patterns

Recommend this page to a friend!
  Info   View files (3)   Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
59%Total: 3,812 All time: 836 This week: 794
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
Age: 40
All time rank: 131 in Germany Germany
Week rank: 713 32 in Germany Germany

  Files  
File Role Description
examples_validate.class.php Example Examples for working with base validation class
validate.class.php Class Base validation class
validate_address.class.php Class Validate address data

 Version Control Unique User Downloads Download Rankings  
 0%
Total:3,812
This week:0
All time:836
This week:794
User Ratings User Comments (1)
 All time
Utility:87%
Consistency:75%
Documentation:-
Examples:83%
Tests:-
Videos:-
Overall:59%
Rank:1393
  

For more information send a message to info at phpclasses dot org.