You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Regex
I'm trying to build (or find) a regular expression that I can use in a
MySQL db query (with the REGEXP operator) to find anagrams within a
table of words. For example, given "CAT", I'd like the result to be:
A
AT
TA
CAT
TAC
ACT
Any ideas?
Thanks!
Jon
unread,
Aug 31, 2009, 7:19:58 AM8/31/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Regex
Yeah, I don't think you can do that with a regular expression...unless
you defined every single word in the dictionary in your expression.
You'd be better off getting the word from the DB, then using something
like http://sourceforge.net/projects/phpag/ to find the anagrams.