0

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.

Jiri Tousek
  • 11,964
  • 5
  • 27
  • 41
xxlali
  • 887
  • 2
  • 15
  • 40

0 Answers0