Hi ,
I need to extract only 1,144,000 from negative balance “1,144,000-”
Hi ,
I need to extract only 1,144,000 from negative balance “1,144,000-”
You can use the following RegEx pattern:
-?([0-9,]+)
UiPath Syntax:
extractedData = System.Text.RegularExpressions.Regex.Match(yourString,"-?([0-9,]+)").ToString
Hope this helps,
Best Regards.
How about this expression?
System.Text.RegularExpressions.Regex.Match(yourString,"[.,0-9]+").ToString
Or
System.Text.RegularExpressions.Regex.Match(yourString,"[.,0-9]+(?=-)").ToString
Regards
Gokul
You can also use replace method here
Note: only if you have the “1,144,000-” this as your full input like
InputData = “1,144,000-”
InputData.Replace("-","")
or
System.Text.RegularExpressions.Regex.Replace(InputData,"-","").ToString
Regards
Sudharsan