Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to split and keep delimiter at the same line in python

#split and keep the dlimeters at the end of the line.
#Ex, using the '.'  '?'  '!' as delimeters.

re.split('(?<=!)|(?<=.)|(?<=?)', text)
 
PREVIOUS NEXT
Tagged: #split #delimiter #line #python
ADD COMMENT
Topic
Name
3+1 =