Coding help: I need a code where it removes everything from the substring after this character \

Hi

as example this is the string 1320701_43796602\6f13d70_4739smart.pdf
I need now a code where I can manipulate it and tell it remove everything always after this \ so then I only have this value 1320701_43796602

@david.mitrovic

Let’s say inputString = “1320701_43796602\6f13d70_4739smart.pdf”

               outputString = inputString.Split("\"c)(0).Trim

Hi

Is your value is In a string variable named strinput

Then the below expression will help you resolve this

Use a assign activity and mention this

stroutput = Split(Strinput,”\”)(0).ToString.Trim

Cheers @david.mitrovic

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.