Get particular string value

image
To get the total value alone from the whole text

Input-whole text
Output-78900

Hi @Demo_User

You can use the following RegEx to extract the desired data:

Total\s*:\s*([\d,]+)

image

UiPath Syntax:

System.Text.RegularExpressions.Regex.Match(yourString,"Total\s*:\s*([\d,]+)").Value

Hope this helps,
Best Regards.

Hi @Demo_User
You can try this:
[0-9],+[0-9]+

Regards,

Hi @Demo_User

You can use the below
System.Text.RegularExpressions.Regex.Match(yourString,“Total(.*)(”).Value.Trim

Thanks,
Aditya

hi @Demo_User

image
Use this regex to extract the value

Regards.

Hi @Demo_User

use this regex syntax

I need to get even if it has the decimal value

@Demo_User

Well, in that case, you can use this RegEx:

Total\s*:\s*([\d,\.]+)

image

Hope this helps,
Best Regards.

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