```python
import re

def text_match_two_three(text):
    """
    Matches a string that has an 'a' followed by two to three 'b's.
    """
    pattern = r'ab{2,3}'
    if re.search(pattern, text):
        return True
    else:
        return False

```