• Parses a pattern and strips forward and trailing ^ and $

    Parameters

    • pattern: string

    Returns Expression