View source code
Display the source code in std/regex.d from which this
page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a
Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page.
Requires a signed-in GitHub account. This works well for small changes.
If you'd like to make larger changes you may want to consider using
local clone.
Function std.regex.bmatch
Start matching of input
to regex pattern re
,
using traditional backtracking matching scheme.
auto bmatch(R, RegEx)
(
R input,
RegEx re
)
if (isSomeString!R && isRegexFor!(RegEx, R));
auto bmatch(R, String)
(
R input,
String re
)
if (isSomeString!R && isSomeString!String);
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.
License
Copyright © 1999-2022 by the D Language Foundation | Page generated by ddox.