• Determines whether the given input has a partial match with the specified regex.

    Parameters

    • regex: string | RegExp

      The regex to partially match against

    • input: string

      The input string

    Returns boolean

    Whether any match exists.