Answers for "python split string based on regex"

0

python split string regular expression

import re

s_nums = 'one1two22three333four'

print(re.split('d+', s_nums))
# ['one', 'two', 'three', 'four']
Posted by: Guest on August-05-2020

Code answers related to "python split string based on regex"

Python Answers by Framework

Browse Popular Code Answers by Language