Regex patten how to get the value

need regex i want to extract value after quantity. here value may come with comma or may not come with comma but what ever value is there i want to extract thar

Quantity 3,000

Hi @T_Y_Raju

You can use the below regular expression,

(?<=Quantity\s?)\d+[.,]?\d*[.,]\d*

image

Check the below workflow,

- Assign -> Input = "Quantity 3,000"
- Assign -> output = System.Text.RegularExpressions.Regex.Match(Input.toString, "(?<=Quantity\s?)\d+[.,]?\d*[.,]\d*").Value

Hope it helps!!

An optimistic universal pattern:
grafik

(?<=Quantity\ )[\d.,]+

iam getting error as

may i know what error is this
is there any browser issue?

That was not an error it is warning, in some of the browsers the lookbehind will not supported. But in UiPath it works fine… @T_Y_Raju

You can check the workflow that I have uploaded above.

Hope you understand!!