Converts a list of selectors into a regular expression.

  • Parameters

    • list: string[]

      An array of strings representing the fields to match.

    Returns RegExp

    A regular expression that matches any field from the provided list.