0

So when I use wild cards on Microsoft Word I have something like [A-B]{2}

It works as expected and capture groups of two letters as wanted. My issue is that it also captures 3 letter and larger words. Is it possible to make it so that maybe it checks for a least one space after the second letter or that the word is only two letters long in total.

0

Use < and > to match beginning and end of a word.

The final pattern in your case is:

<[A-B]{2}>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.