Login   Register  
PHP Classes
elePHPant
Icontem

Regexp Builder: Build regular expressions programmatically

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

  Author Author  
Picture of Marco Marchiņ
Name: Marco Marchiņ <contact>
Classes: 3 packages by
Country: Italy Italy
Age: 25
All time rank: 77831 in Italy Italy
Week rank: 325 Up16 in Italy Italy Up
Innovation award
Innovation award
Nominee: 2x


  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
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

  Classes of Marco Marchiņ  >  Regexp Builder  >  Download Download .zip .tar.gz  >  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
Version: 1.0
PHP version: 4.2
License: GNU Lesser General Public License (LGPL)
All time users: 2489 users
All time rank: 1431
Week users: 6 users
Week rank: 288 Up
 
  Groups   Rate classes User ratings   Applications   Files Files  

  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


  Innovation Award  
PHP Programming Innovation award nominee
November 2009
Number 3


Prize: One year subscription to the PDF edition of the JSMag magazine
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  
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: Good (97%) Good (91%) Good (88%) Good (91%) - - Sufficient (75%) 52
Month: Not yet rated by the users

  Applications that use this package  
No pages of applications that use this class were specified.
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
Accessible without login HTML file documentation.html Doc. Documentation

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

Install with Composer Install with Composer - Download 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.