Extract string with new line using regex

Hi All,
I want to capture the string “9529” from the following text which was stored in a string variable.
The regex which I have tired is : “(\bMUC\d+\n\d+)” and it is showing data in regexr page but i dont see any data in (match) in uipath.
Please find this screenshot for the reference.

Please help me with this!
Thanks!

Hi,

Can you try the following expression?

System.Text.RegularExpressions.Regex.Match(yourString,"(?<=MUC\d+\s+)\d+").Value

Regards,

1 Like

Thank you so much it worked for me.

1 Like

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