Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python How To Remove Commas From String

import re

my_string="Python, How To, Netherlands"
print("Original String is:")
print(my_string)

transformed_string=re.sub(",","",my_string)
print("Transformed String is:")
print(transformed_string)
Source by pythonhowto.org #
 
PREVIOUS NEXT
Tagged: #Python #How #To #Remove #Commas #From #String
ADD COMMENT
Topic
Name
2+1 =