Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to split string into list conditionally+python

import re
pattern = r'(?<!):'
s = 'I:would:like:to:find:out:how:this:works'
print(re.split(pattern, s))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #split #string #list
ADD COMMENT
Topic
Name
3+5 =