I have this:
Code: Select all
let>ListOne=2;7;49;4;16;19;42;38;39;1;8;17;13;12;39;51;9;20;29;35;36;37;10;50;
let>Pattern=\b(49|38|17);(13|26|39|52)
// Pay no mind to the following RegEx. It is one of many tests to get the desired result.
RegEx>Pattern,ListOne,0,Match,DLnom,1,$1,Test
So I search for 49 or 38 or 17 followed by 13 or 26 or 39 or 52. If found, I want to keep the first number and exclude the second number. So, in this example, I want to exclude 13 or 26 or 39 or 52. So that the result is only 49 or 38 or 17. So if it finds 38;39 the result is 38.
There are multiple combinations that are possible. It could be 38;39 or 49;13 or 17;52. Any combination of the first set of numbers with the second set of numbers, with only one of each. The number can be one digit or two digits. Note that all numbers here are examples.
There may also be more than one result. So it may find both 38;39 and 49;13 and maybe even 17;52. In which I want the first number of each set(38;49;17).
If you can help, your help will be greatly appreciated.
Thanks,
PepsiHog