fork download
  1. txt <- " 9PM 8-Oct-2014_0.335kwh "
  2. txt <- sub("[\\s_]+", "", txt, perl = TRUE)
  3. txt
Success #stdin #stdout 0.2s 183680KB
stdin
Standard input is empty
stdout
[1] "9PM   8-Oct-2014_0.335kwh  "