I want to write a regex that contains only abcde, max five characters and a character can occur max one time. I tried [abcde]{1,5}
but aa
or bcb
are valid for this expression. I am not good with regex and I have done some research but I could not find a solution.
How can I write such a regex?
Thanks for help.