Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python cut string after character

a_string = "ab-cd"
split_string = a_string.split("-", 1)
substring = split_string[0]
print(substring)
 
PREVIOUS NEXT
Tagged: #python #cut #string #character
ADD COMMENT
Topic
Name
7+3 =