I am expecting the following regex to allow 0-n spaces between operators, but it is forcing at least one. Can someone please correct the error of my ways?
((\d+\.?\d*|\d*\.?\d+\s+?[\+\-\/\*]\s+?)+)(\d+\.?\d*|\d*\.?\d+)
Examples
24*3.2
24 * 3.2
Only the 2nd example is allowed through.
I understood \s+?
should be an optional number of spaces?