Removing delimiter,or splitting a string

Hello people,
How can i remove - from this data to remain with number string

-1546
-2543
-7645

Hi @phionamartinez ,

Try the below :

yourString.Trim("-".ToCharArray)

or if it is always at the beginning, then we could just use Substring :

yourString.SubString(1)

Hi @phionamartinez
use assign activity and left side put ->System.text.RegularExpressions.Regex.Replace(yourVariable, ā€œ\Dā€," ")

It has worked, thank you

1 Like

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