Remove portion of a string after a certain character

dynamo
#1

hi

how can i remove portion of a string after a certain character, i my case is after " , ". so i just have “915” as output?

2019-03-28%2013_31_41-Dynamo

0 Likes

#2

0 Likes

#3

You could also use the String.Substring Node to choose how many characters you want to keep in the string. Like this…

0 Likes

#4

thanks.

but i have see this node, can´t seem to find it. i have google it. no
luck

2019-03-28%2013_53_08

0 Likes

#5

this one is the one, i can´t find

2019-03-28%2013_56_56-

0 Likes

#6

You can also use Springs.Number.ToString to remove the trailing 0.

number%20to%20string

1 Like

#7

Or with String.Split node:

4 Likes

#8

the node mentioned is an old one from 2015

0 Likes

#9

Or there is this python version

2 Likes