Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to split a string in python with multiple delimiters

>>> a='Beautiful, is; better*than
ugly'
>>> import re
>>> re.split('; |, |*|
',a)
['Beautiful', 'is', 'better', 'than', 'ugly']
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #split #string #python #multiple #delimiters
ADD COMMENT
Topic
Name
5+4 =