Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python re.split()

import re

string = 'Twelve:12 Eighty nine:89.'
pattern = 'd+'

result = re.split(pattern, string) 
print(result)

# Output: ['Twelve:', ' Eighty nine:', '.']
Source by docs.python.org #
 
PREVIOUS NEXT
Tagged: #Python
ADD COMMENT
Topic
Name
7+2 =