Regex between two lines

I want to match “Fanta \d{2}” and it needs to be the one that lies between Lines and Balance:

McDonalds
Fanta 44
Road 22

Lines

Coke 22
Fanta 44
Sprite 33

Balance 55

See you

PS. Fanta and two digits can appear a lot in the string, but only once between Lines and Balance, and that’s the match I want. The digits can vary, e.g. Fanta 44, Fanta 55 (read: I dont know the numbers, just that there are two numbers).

@LauraMM
can you please confirm following:

this topic is a duplicate of:
https://forum.uipath.com/t/regex-after-and-before-word/337854/10

and was solved on other topic

If yes please also close / delete this duplicate. Thanks for support

2 Likes

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