
    Write a function that analyzes vehicle tracking status codes to identify traffic slowdowns ('a') followed by either moderate ('bb') or severe ('bbb') weather conditions, requiring immediate route adjustment. The status code pattern must specifically match a traffic indicator followed by exactly two or three weather severity indicators to trigger the rerouting protocol.
    

    
import re

def text_match_two_three(text):
    """
    Write a function that analyzes vehicle tracking status codes to identify traffic slowdowns ('a') followed by either moderate ('bb') or severe ('bbb') weather conditions, requiring immediate route adjustment. The status code pattern must specifically match a traffic indicator followed by exactly two or three weather severity indicators to trigger the rerouting protocol.
    

    """
import re

def text_match_two_three(text):
    """
    Write a function that analyzes vehicle tracking status codes to identify traffic slowdowns ('a') followed by either moderate ('bb') or severe ('bbb') weather conditions, requiring immediate route adjustment. The status code pattern must specifically match a traffic indicator followed by exactly two or three weather severity indicators to trigger the rerouting protocol.
    

    """
    patterns = 'ab{2,3}'
    if re.search(patterns, text):
        return True
    else:
        return False