CyberKnowledge Technology Blog

Everything tech – reviews, tips, software, news

All tech all the time

Welcome to CyberKnowledge technology blog.

Online Regex Generator Using PHP

Posted by Alex Bailey On January - 12 - 2007

If you’re a programmer that often uses regex, then this is a perfect tool. It’s a PHP script that generates regex code for you, and works with just about anything you throw at it. For instance, if I type

size=”4″

in to the box, it shows me all the points in which it can parse out data. I select what variable I’d like to parse out, and it generates the regex code. Not only does it give the regex, but it gives it in your language of choice. You have a variety of languages to choose from:

Perl
PHP
Python
Java
Javascript
ColdFusion
C
C++
Ruby
VB
VBScript
J#.net
C#.net
C++.net
VB.net

Regex Generator

The only thing I could possibly suggest to this service is the use of JavaScript. Currently the page requires a reload every time you select a different option.


See also...

Leave a Reply