Answers for "how to split string in python with 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 "how to split string in python with regex"

Python Answers by Framework

Browse Popular Code Answers by Language