Hello,
Please always cc the list.
To know more about the regular expressions used by r read
help("regex")
The one I used is not very complicated.
\\. match a dot; it is a meta-character so it needs to be escaped.
{2,} repeated at least 2 times, at most an undetermined number of times.
.* any character (.) repeated zero or more times (*).
$ end of string.
All together now.
"\\.{2,}.*$" matches at least 2 dots followed by anything until
the end of the string.
The replacement for this is the empty string "", so what is matched is
removed.
Hope this helps,
Rui Barradas
Às 09:33 de 28/06/19, ptit_b...@yahoo.fr escreveu:
Just a small message to thank you for your fast and working solution.
I now have to understand it ...
Nice day.
_____________________________________
Sent from http://r.789695.n4.nabble.com
______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.