I am writing a method to take a DevExpress "filter" string and convert it to a useable SQL string. For the most part this is easy with simple string substitutions here or there. One thing, however, has me scratching my head because I've just not taken the time to learn Regular Expressions in C#/.NET.
When a decimal number is used, DevExpress emits a string like "FieldName > 2.0m". The problem is the decimal signifier, "m" at the end of the number. I need to take all substrings of the format ###.###m and change them to ###.### (where the number of digits is variable). If I remember correctly, matching this number would be something like:
[0-9,.]*
But how do I look for a number with the "m" at the end and how do I use the Regex class to generate a new string with the m removed?
Thanks!