Try this:

format(strptime("09:30:00.377.853", "%T%OS"), "%H:%M:%OS")

On Mon, Jan 3, 2011 at 5:24 PM, rivercode <aquanyc@gmail.com> wrote:

>
> Hi,
>
> Have been having trouble trying to figure out the right regex parameters to
> remove the last "." in timestamp with the following format:
>
> Convert 09:30:00.377.853 to  09:30:00.377853
>
> Thanks,
> Chris
>
>
>
> --
> View this message in context:
> http://r.789695.n4.nabble.com/Regex-to-remove-last-character-tp3172466p3172466.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help@r-project.org mailing list
> 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.
>



-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O

	[[alternative HTML version deleted]]

