I have a requirement where the client needs to validate a bunch of excel spreadsheets. One of the validation rules is that this field must be a number that looks like ‘x.xx’ (so ‘3.00’ is valid, ‘3.000’ is not). This should be as easy as Double.TryParseExact(s, “#.##”, out number) but I guess it is not there. Is there a way to get this done without using regular expressions? The client is using a DSL and I don’t want to make them learn regular expressions.
Share
I suppose you could do this?
It’s just an idea; to be perfectly honest I haven’t exactly thought it all the way through.