Hello hagchr,
I'm not sure. I think you may be on a level with RegEx that I haven't yet achieved.
How can $base be empty? $Base is the result that I'm asking for. If I used $1, that would ask for the result of the first group in the pattern.
I don't mind your inquiries. I might learn something that I don't know. So please don't give up. When it comes to talking about programming, I'm always interested.
It sounds like you might believe I'm doing it the hard way(and I just might be). How would you go about this?
I have a set of numbers in a string. All I'm interested in are the numbers that repeat. But I don't need the repeated number. If 24 repeats, then in my result all I want is 24, not 24 24.
Here is a sample macro for you to check out.
Code: Select all
let>Using=24:36
let>MyList=50;8;24;16;2;5;51;
Separate>Using,:,Num
let>CompareStrings=%Num_1%;%Num_2%;%MyList%
StringReplace>CompareStrings,:,;,CompareStrings
RegEx>\b(?P<Bob>\d\d?);(?!.*\b\1\b),CompareStrings,0,match,nom,1,$Bob,Results
Separate>Results,;,NumStr
mdl>%NumStr_1%
Please share. I'm all ears.
A Happy New Year to you as well,
PepsiHog