capture method

RegExpRecipe capture(
  1. RegExpRecipe inner, [
  2. GroupRef? ref
])

Implementation

RegExpRecipe capture(RegExpRecipe inner, [GroupRef? ref]) {
  var augment = (expr) => "($expr)";
  return normalize(TrackedRegExpRecipe(inner, augment, ref: ref, tag: RegExpTag.capture));
}