
    Write a function to validate whether a bus route identifier code follows the transit authority's zoning convention, which requires the first and last character to represent the same transit zone. The route identifier must be properly formatted to ensure accurate tracking and scheduling in the transit management system.
    

    
import re
regex = '^[a-z]$|^([a-z]).*\\1$'

def check_char(string):
    """
    Write a function to validate whether a bus route identifier code follows the transit authority's zoning convention, which requires the first and last character to represent the same transit zone. The route identifier must be properly formatted to ensure accurate tracking and scheduling in the transit management system.
    

    """
import re
regex = '^[a-z]$|^([a-z]).*\\1$'

def check_char(string):
    """
    Write a function to validate whether a bus route identifier code follows the transit authority's zoning convention, which requires the first and last character to represent the same transit zone. The route identifier must be properly formatted to ensure accurate tracking and scheduling in the transit management system.
    

    """
    if re.search(regex, string):
        return 'Valid'
    else:
        return 'Invalid'