EIF2018
EIF2018

Reputation: 1

Regular expression to limit the character found to 2 or 3 not more

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})

Upvotes: 0

Views: 16

Answers (0)

Related Questions