Just Great Software

Regex Buddy - Learn, create, understand, test, use and store regular expressions

 Introduction 

 

 Buy Now 

 Our Guarantee 

 Download 

 Testimonials 

 Contact Us 

 User Forum 

 

 Screen Shots 

 Live Demos 

 Regular Expressions 

 Features & Benefits 

 Programming 

 C# 

 Delphi 

 GNU BRE & ERE 

 Java 

 JavaScript 

 MySQL 

 Oracle Database 

 PCRE 

 Perl 

 PHP 

 POSIX BRE & ERE 

 PostgreSQL 

 Python 

 REALbasic 

 Ruby 

 Tcl ARE 

 VB6 & VB.NET 

 VBScript 

 wxWidgets 

 XML Schema 

 Linux 

 

 Press Resources 

 Version History 

 Newsletter 

 Affiliates 

 

 

PowerGREP - Find files and information or search and replace through files and folders
EditPad - Convenient, powerful and versatile text editor to edit all kinds of text files
Ace Text - Store, manage, edit and reuse text from a central location
HelpScribble - Full-featured help authoring tool for creating help files from start to finish
DeployMaster - Installation builder delivering your software with a good first impression
      

Easily Use Regular Expressions in Your PHP Scripts

PHP ereg and preg Regex Functions

PHP has two sets of regular expression functions: the ereg and preg functions. The preg functions support a modern full-featured regex syntax. They do require the PCRE library to be installed on your server. The ereg functions to not rely on any libraries. They implement the POSIX ERE flavor, with lacks modern regex functionality. RegexBuddy makes it very easy to use the ereg and preg regex matching functions in your PHP scripts.

See How Easy Coding with Regexes Can Be

First, use RegexBuddy to define a regex or retrieve a regexp saved in a RegexBuddy library. Rely on RegexBuddy's clear regex analysis, which is constantly updated as you build the pattern, rather than dealing with the cryptic regex syntax on your own. Detailed help on that syntax is always only a click away.

If you copied a regex written for another programming language, simply paste it into RegexBuddy, and select the original regex flavor. RegexBuddy will then automatically convert it to the PCRE or POSIX ERE regex flavor when you generate a PHP source code snippet, depending on whether you selected the preg or ereg function set.

If you created a new regular expression, test and debug it in RegexBuddy before using it in your PHP source code. Test each regex in RegexBuddy's safe sandbox without risking precious data. Quickly apply the regex to a wide variety of input and sample data, without having to produce that input through your script.

Finally, let RegexBuddy generate a source code snippet that you can copy and paste directly into whichever IDE or PHP code editor you use. Just choose what you want to use the regex for, and a fully functional code snippet is ready. You can change the names of variables and parameters to suit your naming style or the current situation, which RegexBuddy automatically remembers.

Don't bother trying to remember which methods to call or which parameters to pass. And don't worry about properly escaping backslashes and quotes. Just tell RegexBuddy what you want to do, and you will get the proper PHP code straight away. Anything can be done: testing a string for a match, extracting search matches, validating input, search-and-replace, splitting a string, etc.

Let RegexBuddy Make Regex Easy for You

      
Only US$ 39.95
Windows 98, ME, NT4, 2000, XP and Vista
100% satisfied or money back
"I bought a license of RegexBuddy about a month ago and totally love it! I'm a PHP developer and creating even complex regular expressions in RegexBuddy is a breeze...

"The software is really worth every penny - keep up the great work!"

-- Fabian Schulz
   10 April 2007, South Africa

Using regular expressions with PHP’s preg functions

Using regular expressions with PHP’s preg functions


"My hats are off to you guys! Your RegexBuddy is a GODSEND!

"I use this program probably 10 times per day when developing applications in PHP. It is great because it not only describes and outlines regexes, but teaches you along the way. Just wanted to drop you a line from this very satisfied customer!"

-- Brandon Parise
   29 Sept. 2004, South Carolina, USA

Using regular expressions with PHP’s ereg functions

Using regular expressions with PHP’s ereg functions

 

 

Page URL: http://www.regexbuddy.com/php.html
Page last updated: 08 June 2007
Site last updated: 06 May 2008

Published by Just Great Software Co. Ltd.
Copyright © 2004-2008 Jan Goyvaerts.
All rights reserved.