Login   Register  
PHP Classes
elePHPant
Icontem

Matcher Class

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author  
Picture of Pashkov Denis Igorevich
Name: Pashkov Denis Igorevich <e-mail contact>
Packages: 19 Browse all classes by Pashkov Denis Igorevich Browse all classes by
Country: Ukraine Ukraine - PHP jobs in Ukraine
Age: 23
All time rank: 40110 in Ukraine Ukraine
Week rank: 114 Up4 in Ukraine Ukraine Up
Innovation award
Innovation award
Nominee: 10x

Winner: 1x


  Detailed description   Download .zip .tar.gz  
This class can validate values from examples with similar format.

It takes an example value, like for instance an e-mail address or a decimal value, and generates a regular expression based on that value considering a common list of delimiter characters.

The generated regular expression can be used to validate other values with similar format without having to specify that regular expression explicitly.

The class can also find all matches of the specified patterns in a given text string.

It can also search for text that is similar to a pattern.

Additional options may set the matching to be case sensitive or not, limit the length of matched text.

  Classes of Pashkov Denis Igorevich  >  Matcher Class  >  Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Matcher Class
Base name: matcher-class
Description: Validate values from examples with similar format
Version: -
PHP version: 5.0
License: Artistic License
All time users: 257 users
All time rank: 6343
Week users: 1 user
Week rank: 2036 Up
 
  Groups   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image Algorithms Numerical and statistical algorithms View top rated classes
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Text processing Manipulating and validating text data View top rated classes
Group folder image Validation Validation algorithms View top rated classes


  Innovation Award  
PHP Programming Innovation award nominee
September 2012
Number 5

Prize: One downloadable copy of Komodo IDE
One way to validate data that needs to match a given format is to use regular expressions.

Regular expressions are powerful but they are also not easy to understand and often are error prone to create them manually.

This class provides an alternative approach to validate data with regular expressions without the need to manually create them.

It just takes a sample valid values and analyzes them to create regular expressions that match the values based on the position of typical delimiter characters.

Manuel Lemos

  User ratings  
Not yet rated by the users

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example Exmaple
Plain text file MathcerClass.php Class Class
Accessible without login Plain text file readme.txt Doc. Readme

Download all files: matcher-class.tar.gz matcher-class.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.