Which Excel VBA RegEx expression should I use to count decimal places?
问题 Q: Which Excel VBA RegEx expression should I use to count decimal places? Desired output This is a table with some example input strings and the desired output. INPUT DESIRED OUTPUT string max value unit decimal places -------------------------------------------------- 200A 200 A 0 110kV 110 kV 0 38,1MW 38,1 MW 1 38,1Mvar 38,1 Mvar 1 0-130°C 130 C 0 20-130°C 130 C 0 2000A 2000 A 0 10 kV 10 V 0 34,6MW 34,6 MW 1 34,6Mvar 34,6 Mvar 1 600A 600 A 0 114,3 MW 114,3 MW 1 114,3 Mvar 114,3 Mvar 1 2500A