Login   Register  
PHP Classes
elePHPant
Icontem

Class: Regexp Builder

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Marco Marchiņ  >  Regexp Builder  >  Download .tar.gz .zip  >  Support forum Support forum (5)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Regexp Builder
Base name: regexp-builder
Description: Build regular expressions programmatically
Related classes: , , , , , , ,
Version: 1.0
PHP version: 4.2
License: GNU Lesser General Public License (LGPL)
All time users: 1981 users
All time rank: 1677
Week users: 10 users
Week rank: 333
Picture of Marco Marchiņ
Author: Marco Marchiņ <e-mail contact>
Packages: 3 Browse this author's classes Browse this author's classes
Country: Italy Italy - PHP jobs in Italy
Age: 22
All time rank: 87932 in Italy Italy
Week rank: 319 Up12 in Italy Italy Up
Innovation award
Innovation award
Nominee: 2x


  Detailed description  
This class can be used to build regular expressions programmatically.

It provides clearly named functions to add each part of a regular expression, such as matching the beginning or end of the text, match a range of characters, match any text, match a portion of text multiple times, capture a portion of the text, etc..

The resulting regular expression can be applied on a given text string to match.

Changelog:
1.0
- Added replaceWith, replaceWithCallback, split and grep methods
- Fixed bug on characters escape
- Added 6 more tests

0.2
- Fixed bug on conditions using PRECEEDED_BY and NOT_PRECEEDED_BY
- Added 2 more tests

0.1
- first release

 

  Groups  
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Utilities and Tools General purpose tools to simplify software development View top rated classes
Group folder image Text processing Manipulating and validating text data View top rated classes

  Rate classes User ratings   Applications   Files Files  

  Innovation Award  
PHP Programming Innovation award nominee
November 2009
Number 3
Regular expressions are often used to match text expressions that follow an expected syntax.

However, the syntax of regular expressions is not very trivial to most developers.

This class provides a very developer friendly way to build regular expressions.

Manuel Lemos

  User ratings  
Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Good (96.9%)
Good (93.8%)
Good (90.6%)
Good (90.6%)
-
-
Sufficient (75.9%)
41
Month:
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
Files folder imagetests (16 files)
Plain text file regexpBuilder.php Class Class
HTML file documentation.html Doc. Documentation

  Files  /  Files folder image tests  
File Role Description
  Plain text file grep.php Example Grep example
  Plain text file split.php Example Split example
  Plain text file replace_function_unicode.php Example Replace function unicode
  Plain text file replace_function.php Example Replace function example
  Plain text file replace_unicode.php Example Replace unicode
  Plain text file replace.php Example Replace example
  Plain text file email.php Example Email validation
  Plain text file phone.php Example Phone number validation
  Plain text file php_classes_header.php Example Php class header match
  Plain text file sql_datetime.php Example Sql datetime format validation
  Plain text file word_pairs.php Example Word pairs match
  Plain text file unicode.php Example Unicode characters example
  Plain text file condition.php Example Condition test
  Plain text file conditional_pattern.php Example Conditional pattern test
  Plain text file condition2.php Example Condition test 2
  Plain text file condition3.php Example Condition test 3

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