RGex Builder Platform - v1.2.0
    Preparing search index...

    Function mergePatterns

    • Merges an array of regex pattern strings using the OR | operator.

      Parameters

      • patterns: string[]

        An array of pattern strings to merge.

      • useGroups: boolean = true

        If true, wraps the entire merged pattern in a non-capturing group.

      Returns string

      The combined regex pattern string.