Handy online regex tool for PHP, Perl, JS and Python
April 29th, 2008
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. You can choose which functions to use, such as match, match all, replace, split etc. It also offers some basic help and hints. It’s really handy when working on those painful expressions.
You can check it out at http://regex.larsolavtorvik.com/. Stop by his blog as well.
Technorati Tags: PHP, Perl, JavaScript, Python







April 29th, 2008 at 12:01 pm
Test
April 29th, 2008 at 12:03 pm
You should really disallow the ‘e’ modifier with preg_replace(). This is an extract of your /etc/passwd:
…
backup:x:34:34:backup:/var/backups:/bin/sh list:x:38:38:Mailing List Manager:/var/list:/bin/sh
…
One can also perform any php command through it.
Just to let you know.
April 29th, 2008 at 2:54 pm
Toby: Just to make it clear, it’s not my code and it’s not my domain
My coworker was already notified about this, and removed it. Derrick sent him a sms
May 1st, 2008 at 1:40 am
do you know any information about this subject in other languages?
May 5th, 2008 at 10:19 am
I use this online regex tool: http://www.rexv.org/
Check it out.
May 5th, 2008 at 10:26 am
nev3rm0re: That’s pretty sweet as well, but I’d like to see support for testing in more languages there.
May 6th, 2008 at 6:26 pm
[…] Hoem has pointed out an online tool a coworker shared with him to work with regular expressions for multiple languages. […]