Match
struct Match
A match struct returned from match
method.
Fields
Return end index of matched text
Return end index of matched text
Return end index of matched text
nv
use std.regex.Regex;
let re = try! Regex.new("[a-z]+");
let m = re.find("abc")!;
assert_eq m.end, 3;
Return end index of matched text
Return end index of matched text
Return end index of matched text
nv
use std.regex.Regex;
let re = try! Regex.new("[a-z]+");
let m = re.find("abc")!;
assert_eq m.text, "abc";
Methods