RhythmAddict112
Programmer
Hi All,
Quick question. I need to create a JS function that will test a string for repeat characters. Basically, it can return false if any characters in the string are repeated, true if not.
just to clarify, that'd mean no character can be repeated in the string, as opposed to back to back.
So the word "dad" would return false, since it has two d's.
I was looking for an easy (regEx?) way to do this, but since I don't really even know regEx that does make things a bit challenging
Any of you gurus have any suggestions for me?
Thanks in advance1
Quick question. I need to create a JS function that will test a string for repeat characters. Basically, it can return false if any characters in the string are repeated, true if not.
just to clarify, that'd mean no character can be repeated in the string, as opposed to back to back.
So the word "dad" would return false, since it has two d's.
I was looking for an easy (regEx?) way to do this, but since I don't really even know regEx that does make things a bit challenging
Any of you gurus have any suggestions for me?
Thanks in advance1