How to use regex to capt a dynamic list?

HI. Is´t possible to make a pattern for regex to capture the following list? The list will change depending on what values the user has marked. I need to store the text inside Value text /Value in a varString or in a list to use in a for each loop to print them in a other sytem.

As you can see it can be up to 6 diffrent user-choice and the last is a “other”

regex_list.txt (1.2 KB)

Hi,

Can you try the following pattern?

(?<=\<Value\>).*?(?=\</Value\>)

Sample20210225-1.zip (2.9 KB)

It might be better to use XML parser to extract content of Value element.

Regards,