Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

separate each characters by commas into a single characters separated by commas

# E.g: 
# 'hello' -->  'h', 'e', 'l', 'l', 'o'

import regex as re
a = "hello"
b = ','.join(a)  #gives 'h, e, l, l, o'
result = re.split(r",(?![, ])", b)  # this separates each characters separated by commas in b into single string character
print(result)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #separate #characters #commas #single #characters #separated #commas
ADD COMMENT
Topic
Name
1+3 =