Can someone help with a RegEx. I have a string that contains numbers and text. I need to extract all the numbers that are associated with dollars. So it could be 1,000, 10,000, 100,000, 1,000,000. But I do not want stuff like 90 as those would be days. I suppose the thing that differentiates them is the commas.
How would I grab all the numbers and then add them?
If i just use a msg box for each item it shows me each item. For some reason it also displays 0. Any idea why? Is it pulling it from the 90? Is there a way to eliminate that?
That pattern worked!
Last question. When I add the numbers together, how do I put the comma back in? right now if I add 100,000 and 100,000 i get 200000 instead of 200,000