Select Particular Number from string

String(INPUT)- “2 - 4 year”
I want output like =“2to4”
to must be add in between


If your input is in a variable named Strinput
Use this expression in a assign activity

stroutput = Split(Strinput,”year”)(0).ToString.Replace(“ - “,”to”).ToString.Trim

Cheers @badal_patel

I also want 2 and 4

Yeah it will return them too
Give a try

not working I tried

May I know what error you are getting
Probably a screenshot if possible


It’s working now

1 Like


If we don’t have further queries pls close the topic

@badal_patel on behalf you I marked the right comment as solution once you gave thumbs up that this got resolved

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