|
|
| Perl: the Markov chain saw | |
| PerlMonks |
Re: Regular Expression Builderby tommyw (Hermit) |
| on Aug 30, 2002 at 15:36 UTC ( #194145=note: print w/ replies, xml ) | Need Help?? |
|
Programming Perl includes: Which takes a word, and builds a template from it with the same pattern of vowels and consonants. Although the original is commented. Extending this to handle digits should be easy. The cunning part will be collapsing the multiple character classes down, and using a multiple instead. This is, of course, left as an exercise for the reader ;-) --
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||