Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

splitting on basis of regex python

import re
#a string
str = '63__foo,,bar,_mango_,apple'
#split string into chunks
chunks = re.split('[_,][_,]',str)
#print chunks
print(chunks)
Source by pythonexamples.org #
 
PREVIOUS NEXT
Tagged: #splitting #basis #regex #python
ADD COMMENT
Topic
Name
6+4 =