add R regular expression related stuff