How to find words containing 3 characters?

Hello.

I want to find all the words in my document that have only 3 characters.
This regulae expression:

[a-z]{3,}

also finds words that have more than 3 characters; But I want to find only words that have 3 characters, not more than 3 characters.

then why do you use the comma?

Without the comma, it will still find any group of three consecutive letters, even in longer words.

Of course. Your pattern will find any sequence of at least three characters in the range [a-z] (check the list of regular expressions), even in the middle of a word. You have to include word boundary markers (\b). Use \b([a-z]{3})\b instead.

To show the community that your question has been answered, click the ✓ next to the correct answer, and “upvote” by clicking on the ^ arrow of any helpful answers.

Thank you. My problem solved.