Function std.regex.match
Start matching input to regex pattern re.
auto match(R, RegEx)(
R input,
RegEx re
)
if (isSomeString!R && isRegexFor!(RegEx, R));
auto match(R, String)(
R input,
String re
)
if (isSomeString!R && isSomeString!String);
The exact matching scheme (Thompson NFA or backtracking) is chosen
automatically based on the pattern; this function does not force a
particular engine. It is kept for backwards compatibility and is
equivalent to bmatch.
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.
Returns
a RegexMatch object holding engine state after first match.
Authors
Dmitry Olshansky,
API and utility constructs are modeled after the original std
by Walter Bright and Andrei Alexandrescu.