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
  • 12,211
  • 5
  • 29
  • 43
xxlali
  • 996
  • 2
  • 15
  • 43

0 Answers0