The OpenD Programming Language

match

Start matching input to regex pattern re, using Thompson NFA matching scheme.

The use of this function is discouraged - use either of matchAll or matchFirst.

Delegating the kind of operation to "g" flag is soon to be phased out along with the ability to choose the exact matching scheme. The choice of matching scheme to use depends highly on the pattern kind and can done automatically on case by case basis.

  1. auto match(R input, RegEx re)
  2. auto match(R input, String re)
    match
    (
    R
    String
    )
    (,
    String re
    )

Return Value

Type: auto

a RegexMatch object holding engine state after first match.

Meta