This sounds like an automatic analysis of programs, which is often proved to be impossible.
Anyway maybe the discussion in this thread "Regexp generating strings?" and this module "Regexp::Genex" can be of help for you.
Cheers Rolf
In reply to Re: Analysis of Regular Expressions
by LanX
in thread Analysis of Regular Expressions
by PetaMem
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |