0

I am looking for a regex that only takes out 2 or 3 characters. If there are more chars there should not be a match. See uploaded picture:

Regex and result

I already tried:

/^[A-Z]{2,3}$/
(\b[A-Z]{2,3})
mkrieger1
  • 19,194
  • 5
  • 54
  • 65

0 Answers0