Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python split string regular expression

import re

s_nums = 'one1two22three333four'

print(re.split('d+', s_nums))
# ['one', 'two', 'three', 'four']
Source by note.nkmk.me #
 
PREVIOUS NEXT
Tagged: #python #split #string #regular #expression
ADD COMMENT
Topic
Name
1+2 =