You can use "(?<=DELIMITERS)"
:
unlist(strsplit(x, "(?<=[?.!|])", perl=TRUE))
## [1] "What is this?" " It's an onion." " What!" " That's|"
## [5] " Well Crazy.
More Related Contents:
- Replace single backslash in R
- Remove all special characters from a string in R?
- Create new column in dataframe based on partial string matching other column
- R/regex with stringi/ICU: why is a ‘+’ considered a non-[:punct:] character?
- Select rows from data.frame ending with a specific character string in R
- Find the location of a character in string
- Is there an R function to escape a string for regex characters
- Remove square brackets from a string vector
- Overlapping matches in R
- Remove all characters before a period in a string
- How to measure similarity between strings?
- Regex to match string containing two names in any order
- Splitting a string at every n-th character
- Test if characters are in a string
- Extract a regular expression match
- Why does strsplit use positive lookahead and lookbehind assertion matches differently?
- How to split a string by multiple delimiters in PHP?
- Extracting pairs of words using String.split()
- R – gsub replacing backslashes
- Remove numbers from alphanumeric characters
- Java String.split() Regex
- Regex number between 1 and 100
- How to split a long string without breaking words?
- Java String.split() sometimes giving blank strings
- Split a string based on multiple delimiters
- Complete word matching using grepl in R
- How can I match a string with a regex in Bash?
- Get values between curly braces c#
- Extract a string between patterns/delimiters in R
- Get Twitter @Username with Regex in R