in reply to Re: regex at word boundary
in thread regex at word boundary
You're right, the (corrected) code won't find palindromes. It wasn't intended to. It was the first step in finding a palindrome candidate. After the candidate is found I can strip out spaces and check to see if the word group does qualify as a palindrome.
Ultimately I don't care about finding palindromes. It is just a little puzzle to apply some time to. Some people do soduko puzzles, some crosswords, I look for little problems that I don't know the answer to and explore the possibilities.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: regex at word boundary
by QM (Parson) on Dec 07, 2005 at 21:07 UTC |