On Wed, Dec 17, 2003 at 02:37:46PM -0800, Kirk Moore wrote: > Is there a tool that would take and expand out a regex rule showing all the > possibilities that rule makes?
If I recall my Computer Science classes correctly, the answer is no. Which doesn't mean the trivial regexps aren't possible to list out (I saw a response talking about /\d\d/ aka /\d{2}/ which is easily listed), but things like /.*/ can be nothing or anything, and occurs VERY regularly in regexps. The only reason it doesn't kill a machine and render regexps useless is because it's bounded by the text it's trying to match against. -- Randomly Generated Tagline: Unlike most of you, I am not a nut. -- Homer Simpson Homer's Odyssey
pgp00000.pgp
Description: PGP signature