News Feed
Sections
News Archive


Community Events
php|tek 2008 PHP Conference



feed this:

Eirik Hoem's Blog:
Handy online regex tool for PHP, Perl, JS and Python
0 comments :: posted Tuesday May 06, 2008 @ 12:09:14
voice your opinion now!

Eirik Hoem has pointed out an online tool a coworker shared with him to work with regular expressions for multiple languages.

A coworker of mine has been working on a ajax enabled regex tool which lets you evaluate regex expressions in several languages (including PHP PCRE and PHP POSIX) with instant results.

The tool lets you put in the string you want to match again and the pattern you want to match with. The results are automatically populated below it, making it easy to fine-tune your expression to only what you want.

tagged with: regular expression tool online perl javascript python


Sean Coates' Blog:
PHP Pie?
0 comments :: posted Monday February 19, 2007 @ 08:20:00
voice your opinion now!

Sean Coates has created a simple version of a popular bit of Perl functionality and shares the code in hi slatest post - the "pie" ability to perform a search and replace, line by line, through a file using a regular expression.

I've often found myself looking for a PHP equivalent. Not to do simple substitutions, of course, but complex ones. And since I'm most comfortable with PHP, and a I have a huge library of snippets that I can dig out to quell a problem that I may have solved years ago, I've been meaning to fill this void for a while.

So, one evening, he came home and hashed out this version of the script. He includes the code in the post...it works on the command line and pulls in a file (though STDIN) and loops through the buffered version to perform the regex replace.

tagged with: perl pie parse regularexpression code example replace search perl pie parse regularexpression code example replace search


cakephp conference PHP5 database zend developer security ajax code mysql pecl job release package application releases zendframework book PEAR framework

All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework