Click here to get back home

Regular Expression Generator

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Regular Expression Generator jeremyje@gmail.com 06-26-2006
Get Chitika Premium
Posted by jeremyje@gmail.com on June 26, 2006, 1:42 am
Please log in for more thread options


Is there a library or a way to generate an appropriate regular
expression for any given input string?
(remove quotes for examples)
For example: "1234567890abcdef is in hex9"
Regex Generator returns: [0-9|A-F] [a-z] [a-z] [0-9|a-z]

Or anything that does some sort of similar processing?


Posted by Ted Zlatanov on June 26, 2006, 2:52 pm
Please log in for more thread options


On 26 Jun 2006, jeremyje@gmail.com wrote:

> Is there a library or a way to generate an appropriate regular
> expression for any given input string?
> (remove quotes for examples)
> For example: "1234567890abcdef is in hex9"
> Regex Generator returns: [0-9|A-F] [a-z] [a-z] [0-9|a-z]
>
> Or anything that does some sort of similar processing?

I only know of this one:

http://search.cpan.org/~dankogai/Regexp-Optimizer-0.15/lib/Regexp/Optimizer.pm

Emacs also has a regexp-opt function you may find interesting (as an
alternate approach in a different language).

Ted

Similar ThreadsPosted
Re: Using Regular Expression August 18, 2008, 6:32 am
Re: Using Regular Expression August 18, 2008, 11:17 am
How to parse with regular expression... May 5, 2005, 6:33 am
Simple Regular Expression Help May 16, 2007, 1:59 pm
regular expression problem ? and * characters May 28, 2006, 7:02 am
yet another xml generator March 17, 2008, 9:38 pm
XML::Generator::DBI - use of uninitialized value on line 180 and 187 September 12, 2004, 8:00 pm
Free Random Password Generator January 26, 2005, 10:09 pm
XML::Generator::DBI and NULL values in columns, oh my! March 9, 2006, 2:24 pm
trickiness (?) calling regular subroutines from OO methods August 23, 2004, 11:16 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap