Regular Expression Generator

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

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?

Re: Regular Expression Generator

On 26 Jun 2006, wrote:

Quoted text here. Click to load it

I only know of this one:

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


Site Timeline