Hi, How to write regex for this:
here I need to get Tax, which is the 3rd number in the image.
Thanks
@Rachita_Chauhan - so its 0.00 and 0.56?
0.56
0.00 in first image, 0.56 in second image
@Rachita_Chauhan - Could you please check this…For testing purpose, I have put both texts here to show that the pattern is working…
3rdAmount = Regexvar(0).groups(1).tostring
Regex Patten link
Hope this helps…
So I am using Regex in Document Understanding…I just need to get the 3rd number for Tax. Cannot assign them into a variable.
@Rachita_Chauhan - Instead of 3rd amount , whatever the taxonomy variable used for this amount, you have to give it on the Regex based extractor…that’s it…as shown like this…
Note: In your initial query you did not mentioned anything about the DU at all. Going forward, when you are posting the query, please provide all the pertinent details which will help us providing more suitable solution(s)…
Hi @Rachita_Chauhan - Say you are calling this amount as Tax amount in Taxonomy…
So , in the Regex based extractor…Just give this expression…(?<=TAX\n\n).*\s([\d.,]+)
this will extract the amount and show it in the “Present Validation Station”…
Hope this helps…