Login   Register  
PHP Classes
elePHPant
Icontem

udPattern: A simple way to check strings against 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 (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2014-07-27 (2 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 644 All time: 4,499 This week: 1,435Up
Version License PHP version Categories  
udpattern 1.0BSD License4.0Text processing
Description Author  

udPattern allows you to store patterns and to check strings against them. It should be perfect for matching URLs and filenames.

Just register the patterns you want to use and then call the TestPattern function to check if it is a valid string. You can use accept(+) or reject(-) to all patterns as well as wildcards.

If you are experienced with regular expressions you might do it faster but probably not as easy.

Picture of Thomas Björk
Name: Thomas Björk <contact>
Classes: 11 packages by
Country: Sweden Sweden
Age: 46
All time rank: 1691 in Sweden Sweden
Week rank: 77 Up1 in Sweden Sweden Equal
Innovation award
Innovation award
Nominee: 3x

  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example A quick example
Accessible without login Plain text file LICENSE Data License file
Accessible without login Plain text file README.md Data Updated readme to markdown
Accessible without login Plain text file readme.txt Doc. Quick documentation
Plain text file udpattern.php Class Implements the class udPattern

 Version Control Unique User Downloads Download Rankings  
 80%Total:644All time:4,499
 This week:0This week:1,435Up