Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

How to remove all characters after a specific character in python?

mystring = "123⋯567"
mystring[ 0 : mystring.index("⋯")]

>> '123'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #How #remove #characters #specific #character
ADD COMMENT
Topic
Name
1+8 =