3 ms·
> I don't understand the suggestion for regexes as the correct and optimal way to detect palindromes That made me pause as well, but he actually doesn't say th
by iSnow 10y ago
> I don't understand the suggestion for regexes as the correct and optimal way to detect palindromes
That made me pause as well, but he actually doesn't say that. He says a "many will use RegEx as a part of the solution" - typically to strip whitespace and punctuation signs - something like /\W/.