Ask coding questions

← Back to all posts
Palindrome
2020_JustinJust

I can't figure out how to code my replit so that it could detect a palindrome with punctuation marks, apostrophes, and non-alphanumeric characters considering uppercase and lowercase letters.

Voters
RobertReynolds9
2020_JustinJust
Comments
hotnewtop
ash15khng

I don't know Java, but I would solve it by removing all punctuation marks, spaces, and changing the entire thing to lowercase, then I would check if it's the same forwards and backwards. Hope this could kind of help!

safan41

i found this to be easier