Say I had a string that was either in the format $(Integer) - $(Integer) or $(Integer). What would be the easiest way to break these up and convert them to integer values? If the string is in the format $(Integer) - $(Integer) take the average of the two numbers.
Example string: $20 - $40 would be converted to 30 (This is a range)
1 Answer