Delivering the best Add-Ons in more than 37 languages.

中文(简体), English, हिन्दी/हिंदी, Español/Castellano, العربية, Русский язык, Français, 中文 (台灣), বাংলা, Bahasa Indonesia, اردو, Português, Deutsch, Bahasa Melayu (بهاس ملايو‎), 日本語 (にほんご), فارسی, Italiano, తెలుగు, Türkçe, ગુજરાતી, Język polski/polszczyzna, Tiếng Việt, ಕನ್ನಡ, Українська мова, ไทย
PHP Scripts / Miscellaneous

MyRegExp - PHP Regular Expression Builder

— Add-On to

Subscribe to our feed to stay up to date!

New! Follow us as you want it!

MyRegExp - PHP Regular Expression Builder - CodeCanyon Item for Sale


Ad: Bluehost hosting
This item is a PHP RegEx builder, with what you can do is to build Regular Expressions in an entendible-php syntax. You can:
  1. Build Regular Expressions with an easy PHP -Syntax
  2. Validate strings with the RegEx built
  3. Build RegEx’s and get them
  4. Apply preg_match to a RegEx
  5. Replace string with the RegEx built

All that in a php syntax. No more broken heads trying to make basic or complex RegEx!

$instance->$string = 'Need to change this'; $instance->extract()->match(' change ')->extract(); echo $instance->replace($string, '$1 leave $2'); // Need to leave this

Validate only numbers:
$instance->addStart()->match(ANYDIGIT)->times(ONE_MORE)->addEnd(); var_dump($instance->validate('124321')); // True 

From basic validation….
// Find a or c in string $instance->matchOne('a', 'c') var_dump($instance->validate('hello codecanyon')); // True 

To complex ones!
// Start by - followed by 1 or 2 // Match any char 0+ times // End with - preceeded by 1 or 2 $instance->addStart()->match('-')->ifIs(FOLLOWED_BY)->matchOne('1', '2')->closeIf() ->match(ANYCHAR)->times(ZERO_MORE) ->ifIs(PRECEEDED_BY)->matchOne('1', '2')->closeIf()->match('-')->addEnd(); var_dump($instance->validate('-2 this is text 1-')); // True 

What is included?
  1. Fully explained documentation
  2. One example for every function
  3. 9 general examples
  4. Class file (only 5kb)

When you buy it, I recommend you to first read the examples included in the documentation and then the rest of it, is more easy to understand all :-)
Rating will be really appreciated. Questions? Suggestions? Please, don’t doubt to leave a comment!

Other components in this categoryAll components of this author
CommentsFrequently asked questions and answers


10 October 11

Last Update:
10 October 11

Files Included:

Software Version:
PHP 5.x


eCommerce, eCommerce, All Items, class, coincidence, easy, expression, helper, match, php5, preg, regex, regexp, regular, replace, validate, validation