fork(2) download
  1. stringA="a; b; c; d; e; f; g; h; i; j;"
  2. s <- 4
  3. sub(sprintf("^((?:[^;]*;){%d}).*", s), "\\1", stringA)
  4.  
  5.  
Success #stdin #stdout 0.3s 22840KB
stdin
Standard input is empty
stdout
[1] "a; b; c; d;"