PHP Classes
Icontem

Class: Regexp Builder


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Marco Marchiņ  >  Regexp Builder  >  Download  >  Support forum Support forum (3)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Regexp Builder Support forum
Base name: regexp-builder
Description: Build regular expressions programmatically
Version: 1.0
Required PHP version: 4.2
License: GNU Lesser General Public License (LGPL)
All time users: 1174 users
All time rank: 2263
Week users: 18 users
Week rank: 388
 
  Author   Group folder image Groups   Detailed description  
  Rate classes User ratings   Applications   Files Files  

Author

Picture of Marco Marchiò
Name: Marco Marchiņ <e-mail contact>
Published packages: 3 Browse this author's classes Browse this author's classes
Country: Italy Italy - PHP jobs in Italy
Home page: ???
Age: 20
All time rank: 1281
Week rank: 228

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

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

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

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%)
37
Month:
There are not enough user ratings to display for this class.

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

File Role Description
Plain text file regexpBuilder.php Class Class
HTML file documentation.html Doc. Documentation
Files folder image tests
  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.

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2010 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products