Answers for "python split string regular expression"

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 regular expression"

Python Answers by Framework

Browse Popular Code Answers by Language