matchAll

Initiate a search for all non-overlapping matches to the pattern re in the given input. The result is a lazy range of matches generated as they are encountered in the input going left to right.

This function picks the most suitable regular expression engine depending on the pattern properties.

re parameter can be one of three types:

  • Plain string(s), in which case it's compiled to bytecode before matching.
  • Regex!char (wchar/dchar) that contains a pattern in the form of compiled bytecode.
  • StaticRegex!char (wchar/dchar) that contains a pattern in the form of compiled native machine code.
  1. auto matchAll(R input, RegEx re)
  2. auto matchAll(R input, String re)
  3. auto matchAll(R input, String[] re)
    matchAll
    (
    R
    String
    )
    (,
    String[] re...
    )

Return Value

Type: auto

RegexMatch object that represents matcher state after the first match was found or an empty one if not present.

Meta