Displaying 1 result from an estimated 1 matches for "foooobar".
Did you mean:
fooooobar
2011 Feb 25
0
Named capture in regexp
...unction(i){
st <- attr(result,"capture.start")[i,]
substring(string[i],st,st+attr(result,"capture.length")[i,]-1)
}))
colnames(m) <- attr(result,"capture.names")
m
}
string <- c("another foobar bazing string",
"fbar baz foooobar baz",
"no matches here",
"my foobar baz st another fooooobar baz dude fobar baz")
notables <- c(" Ben Franklin and Jefferson Davis","\tMillard Fillmore")
name.rex <- "(?<first>[A-Z][a-z]+) (?<last>[A-Z][a-z...