fork(4) download
  1. x <- "I like_to see_how_too but_it_seems to_be_impossible"
  2. strsplit(x, "^[^_]*(?:_[^_]*)\\K_", perl=TRUE)
  3. strsplit(x, "^[^_]*(?:_[^_]*){1}\\K_", perl=TRUE)
  4. strsplit(x, "^[^_]*(?:_[^_]*){0}\\K_", perl=TRUE)
  5. strsplit(x, "\\A[^_]*(?:_[^_]*){0}\\K_", perl=TRUE)
Success #stdin #stdout 0.3s 22832KB
stdin
Standard input is empty
stdout
[[1]]
[1] "I like_to see" "how_too but"   "it_seems to"   "be_impossible"

[[1]]
[1] "I like_to see" "how_too but"   "it_seems to"   "be_impossible"

[[1]]
[1] "I like"     "to see"     "how"        "too but"    "it"        
[6] "seems to"   "be"         "impossible"

[[1]]
[1] "I like"     "to see"     "how"        "too but"    "it"        
[6] "seems to"   "be"         "impossible"