Splitting/manipulating strings

Hello,

I would like to split a string so that I remove the first three characters from it
E.g.
(1)Input

to

Input

Any help would be appreciated,
Thanks

1 Like

To clarify, the first three characters might change e.g. Input could be (2)Input or (3)Input

@mzucker

Try this:

Str = “(1)Input”

Str.Substring(2,Str.Length)

@mzucker
use this code in assign activity…
StrValue.Split({“)”},StringSplitOptions.None)(1)

StringVar=“(1)Input”
StringVar= StringVar.substring(3,StringVar.length-3)

1 Like

Hi
Hope this would help you
Intext = “(1)input”
Then
Outtext = Split(Intext,”)”)(1).ToString // output is input

Cheers @mzucker

Try this:
take String datatype variable str and assign value
str=“(1)Input”
take another two string variable called outputstrfirst,outputstrsecond
and try function : substring two times

outputstr = str.Substring(0,3)
outputstrsecond = str.Substring(3)

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