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
Please share. I'm all ears.
A Happy New Year to you as well,