in reply to
regexp golf - homework
It doesn't really answer the question, but if you could use (??{}), this would do it:
/^((??{'[^\D'.join('',@c,push @c,$1).']'}))*$/
[download]
Comment on
Re: regexp golf - homework
Download
Code
In Section
Seekers of Perl Wisdom