[R] Doubt about pattern
Stefano Calza
calza at med.unibs.it
Fri Jan 30 12:55:22 CET 2004
On Fri, Jan 30, 2004 at 12:46:44PM +0100, Peter J. Acklam wrote:
...cut...
>
> Stefano Calza <stecalza at tiscali.it> wrote:
> >
> > dir(pattern="\\.sens+$")
>
> That will find files ending with ".sens", ".senss", ".sensss",
> etc.
>
> To find files ending with ".sens.", the regex is
>
> dir(pattern = "\\.sens\\.$")
>
> If there is a file called just ".sens.", you have to use
> "all.files = TRUE", since files beginning with a "." are
> invisible.
Ops you're perfectly right. Should not put +!!
Thanks,
Ste
> Peter
>
> --
> Peter J. Acklam - pjacklam at online.no - http://home.online.no/~pjacklam
--
Stefano Calza,
Sezione di Statistica Medica
Dip. di Scienze Biomediche e Biotecnologie
Università degli Studi di Brescia - Italy
Viale Europa, 11 25123 Brescia
email: calza at med.unibs.it
Telefono/Phone: +390303717532
Fax: +390303701157
More information about the R-help
mailing list