Hello, I am making a program to solve word jumbles. It takes in an a string and finds all permutations of the characters and for each permutation checks the string against a wordlist to see if its a real word. The code I have for the word searching function is:
The problem I am having is that I need to be sure that it only returns true if the word is found on its own line and while I can add \x0D to the end and find good results it won't find ANYTHING if I add the newline char to the front(\x0A).
Any suggestions... (also platform independent would be best)
Thanks in advance.