Skip to content
Prev 9004 / 398502 Next

Pattern Matching help

Try
[1] "b.c"   "d.e.f"
But
[1] "a"     "b_c"   "d_e_f" "p_q,r"
`.' is a special character in a regexp.   You have to escape it by `\', and
that needs to be escaped in R.

Perhaps we need to say more on the help page, but I am reluctant to
try to define the meaning of `regular expression' there ....