Answers for "how to split word using regex in python"

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 word using regex in python"

Python Answers by Framework

Browse Popular Code Answers by Language