Input value “(* 767000)”
Output required value is 76700
How to write string manipulation
Any suggestion will be helpful for me
Input value “(* 767000)”
Output required value is 76700
How to write string manipulation
Any suggestion will be helpful for me
Try this
Input= “*(* 767000* )”
Output = Input.Replace("(* ", "").Replace(")", "")
or
Input= “*(* 767000* )”
Output=String.Join("",Input.Where(Function(c) Char.IsDigit(c)))
or
Input= “*(* 767000* )”
Output=New String(Input.Where(Function(c) Char.IsDigit(c)).ToArray)
Hope this helps!!
You can use regular expressions to extract the required output.
- Assign -> Input = "(* 767000)"
- Assign -> Output = System.Text.RegularExpressions.Regex.Match(Input.ToString,"(\d+)").Value
The Output contains the required output.
Check the below workflow for better understanding.
Hope it helps!!
Hello @satish.rathi59
Assign Activity:
Assign Activity:
Assign Activity:
Thanks & Cheers!!!