CombinePrefixPattern

class CombinePrefixPattern

This is similar to the combinePrefixPattern.js in JavaScript Prettify.

All comments are adapted from the JavaScript Prettify.

Author

mikesamuel@gmail.com

Constructors

Link copied to clipboard
fun CombinePrefixPattern()

Functions

Link copied to clipboard
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.