@gruhn/regex-utils
    Preparing search index...

    Function or

    • This is like the regex pipe operator | (aka. alternation, aka. union, aka. or). This is a standard regex operator so if all inputs are StdRegex the output, is also a StdRegex.

      Parameters

      Returns StdRegex

      or([ singleChar('a'), singleChar('b') ]) // like /a|b/
      
    • This is like the regex pipe operator | (aka. alternation, aka. union, aka. or). This is a standard regex operator so if all inputs are StdRegex the output, is also a StdRegex.

      Parameters

      Returns ExtRegex

      or([ singleChar('a'), singleChar('b') ]) // like /a|b/