Answers for "splitting on basis of regex python"

0

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)
Posted by: Guest on November-19-2020

Code answers related to "splitting on basis of regex python"

Python Answers by Framework

Browse Popular Code Answers by Language