Displaying 1 result from an estimated 1 matches for "galaxy54".
Did you mean:
galaxy
2009 Jun 03
2
Regular expression \ String Extraction help
...To The Galaxy42.txt
will become
C:\test\Foo\2009-04-10 1400 Fri Foo1.txt
C:\test\Universities\2009-04-10 1400 Fri Universities2.txt
C:\test\Hitchhikers Guide To The Galaxy\2009-04-10 1400 Fri
Hitchhikers Guide To The Galaxy42.txt
My main issue is the conversion for 'Hitchkikers Guide To The
Galaxy54' because of the spaces in the Name. So far this is what i
have:
> txt <- '2009-04-10 1400 Fri Universities1.txt'
> step1 <- unlist(strsplit(txt, '\\.'))
> step2 <- unlist(strsplit(step1[1], ' '))
> Name <- gsub('[0-9]',replacement='...