Syntactic Confectionery Delight | |
PerlMonks |
Re: regex for word puzzleby Zaxo (Archbishop) |
on Jun 13, 2005 at 01:05 UTC ( [id://466019]=note: print w/replies, xml ) | Need Help?? |
This is anagramming, and the nicest solution is well-known here. Split your string into characters, sort them, and rejoin them. Compare against a hash with keys made the same way from your dictionary or wordlist.
No regex or combinatorial excess needed. After Compline,
In Section
Seekers of Perl Wisdom
|
|