Skip to content
Prev 257908 / 398502 Next

regular expression for nth character in a string

2011/4/25 Gon?alo Ferraz <gferraz29 at gmail.com>:
strapply in gsubfn can readily do that.  It returns the matched part
or, if parentheses are used, only the part in parentheses:
[1] "In"
[1] "ble"
[1] "Tro"
[1] "Tro"