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: , , ,

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • DZone
  • Live
  • Slashdot

7 Responses to “Handy online regex tool for PHP, Perl, JS and Python”

  1. Toby Says:

    Test

  2. Toby Says:

    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.

  3. admin Says:

    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 :)

  4. Bayrak Says:

    do you know any information about this subject in other languages?

  5. nev3rm0re Says:

    I use this online regex tool: http://www.rexv.org/
    Check it out.

  6. admin Says:

    nev3rm0re: That’s pretty sweet as well, but I’d like to see support for testing in more languages there.

  7. Eirik Hoem’s Blog: Handy online regex tool for PHP, Perl, JS and Python | Development Blog With Code Updates : Developercast.com Says:

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

Leave a Reply