Does anyone know how to remove whitespaces at the beggining of those characters using regexes in R?
c( "bundesliga" ,
" liga niemiecka" ,
" wyniki na żywo" )
This doesn't seem to work:
lowered <- c( "bundesliga" , " liga niemiecka", " wyniki na żywo" )
grep( x = lowered, pattern = "^\\s*(?=\\S)", value = TRUE, perl = TRUE )
[1] "bundesliga" " liga niemiecka" " wyniki na żywo"