Function regmatches was introduced in R 2.14.0 - this branch requires R >= 3.0.0 therefore this code can be removed.