Remove portion of a string after a certain character

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

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

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

this one is the one, i can´t find

2019-03-28%2013_56_56-

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

number%20to%20string

2 Likes

Or with String.Split node:

4 Likes

the node mentioned is an old one from 2015

Or there is this python version

2 Likes