The MUD I play on sends this:
You have 102,123,543,534 gold coins.
Is there any way to make a regex that returns the number of coins regardless of commas? So far I have this:
((\d+)\,|)((\d+)\,|)(\d+)
and i return %2%4%5 but I was wondering if there was a better way that matches on more commas/whatever.
You have 102,123,543,534 gold coins.
Is there any way to make a regex that returns the number of coins regardless of commas? So far I have this:
((\d+)\,|)((\d+)\,|)(\d+)
and i return %2%4%5 but I was wondering if there was a better way that matches on more commas/whatever.