In R you can use the strsplit function to split a vector on a delimiter(split) as follows:
strsplit
split
x <- \"What is this? It\'s an onion.
You can use "(?<=DELIMITERS)":
"(?<=DELIMITERS)"
unlist(strsplit(x, "(?<=[?.!|])", perl=TRUE)) ## [1] "What is this?" " It's an onion." " What!" " That's|" ## [5] " Well Crazy.