Can a regular expression be used to find all magic number integers in Visual Studio and convert them to doubles?
The regular expression to find them is beyond my skill, here is what I came up with so far:
(?!=[\s\(])(?<!\.)\d+(?=[\s\)])
This will find all the integers, but erroneously matches
15.527 = "1"5.5"2""7"
Even with a perfect match, is there a way to replace with same number? For example 7 would be replaced by 7.0 and 16 would be replaced by 16.0