A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
The pattern a.{0,2}\b means "a" followed by a word break with 0 to 2 characters. Your test string has c d e f a,bc z, so there is a word break directly after the "a". (word break: word character followed by a non-word character or end of string, or word character preceded by a non-word character or beginning of string.(
It is not clear to me what you want to achieve, so it is difficult to suggest an alternative.