I have a list of English words and I want to find out which words have specific letters and those letters must be used once only. I'm using PHP.
So if the letters are 'abcde' then the words should be like 'cab', 'bed'... but not 'dad'. My current attempt is
if (preg_match("/([abcde]+)/i", $w))
echo $w, "\r\n";
But this just lists all the words contain one of those letters 'abcde'. So can anybody tell me how to do it?