I wrote a program to parse a simple regex so as to return a string that would match the regex! I am very thrilled. The code requires Perl 5.6. To test it, go to the following URL: http://www.pobox.com/~japhy/regexes/parseRE.

Update: the next version of this will appear as the RegexParser module. It will offer functions for finding a string to match a regex, and for doing its best at reversing a regular expression.

The following is a (rather incomplete) list of known cool features: The following is a (rather incomplete) list of known bugs: PLEASE try this puppy out. It took me all day to make this, and I think it's damn cool. If you find a bug and it's not on the abbreviated bug list, DON'T hesitate to email me about it! My email address can be found on my web site and on my home node.

$_="goto+F.print+chop;\n=yhpaj";F1:eval

Replies are listed 'Best First'.
use 5.6.0 ?
by dws (Chancellor) on Oct 25, 2000 at 22:44 UTC
    That's the first time I've seen "use 5.N" instead of "require 5.N". Is there any reason to favor "use" over "require"?

      use happens at compile time so you can use syntax that is new to 5.6.0 without causing strange errors in other versions of Perl. Now, what should 5.6.0->import() do?

              - tye (but my friends call me "Tye")
      I believe that use varies from require in that it occurs at compile time, not run-time, thus, if you have a module 'Module' that can only be loaded if you're using 5.6, the following bits of code will function differently:
      require 5.6; use Module; # Module is loaded *before* 5.6 test is done use 5.6; use Module; # If we're < 5.6, we get an error message before Module is loaded.
      If I'm incorrect in this, by all means correct.
RE: parseRE v1.0 - 404 not found :(
by mischief (Hermit) on Oct 31, 2000 at 15:53 UTC
    File Not Found
    The requested URL /~jeffp/regexes/parseRE was not found on this server.

    will it be returning any time soon? if so, where?