Removing Characters from a string

Hello Folks,

I have a sample string ETHX1234567
How can I achieve by removing “ETH” and keep “X1234567” as a variable? Thanks.

1 Like

Assign Activity
strInput = “ETHX1234567”
writeline strinput.replace(“ETH”,"")

Cheers @kelvinyeo24

1 Like

You can even use substring
Try this yourstringVariable.Substring(3)

Dear All, both methods works. many thanks.

yourstringVariable.Substring(3) how can we use this to match last 3 characters?

removing “567” and keep “ETHX1234”

1 Like

In general str.Substring(0,str.Length-3)

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