combinePrefixPattern

fun combinePrefixPattern(regexs: List<Regex>): Regex

Given a group of java.util.regex.Patterns, returns a RegExp that globally matches the union of the sets of strings matched by the input RegExp. Since it matches globally, if the input strings have a start-of-input anchor (/^.../), it is ignored for the purposes of unioning.

Return

Pattern a global regex.

Parameters

regexs

non multiline, non-global regexs.