[R] Pattern Matching help

Thomas Vogels tov at ece.cmu.edu
Wed Jan 17 18:26:56 CET 2001


Prof Brian Ripley <ripley at stats.ox.ac.uk> writes:

<snip>
> `.' 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 ....
</snip> 

Since perl is a prerequisite for the installation of R, you might
assume that its man pages are also available.  'man perlre' gives an
overview of the special characters in the subsection "Regular
Expressions".  So, could you refer the reader of the help page for
gsub and friends to the man page of perlre?  (I don't what you would
do for the Windows people...)

Regards,
  -tom


-- 
mailto:tov at ece.cmu.edu (Tom Vogels)   Tel: (412) 268-6638   FAX: -3204
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list