Hi, I'm trying a pattern match on a decimal data type. Right now I have the results that I want (any positive or negative decimal number is valid), except that it won't match 0 (zero), which should be valid. Here is my expression:
-?\d*?\.\d*
The text box containing the decimal (default value is 0.000) is formatted as a percentage with 3 decimal places. So 0 appears as 0.000. Is this what's throwing off my expression to find 0 (or 0.000) invalid? I have a work around where my rule to has the following condition:
field matches custom pattern (-?\d*?\.\d*) or field = 0
This works, but I really want to know why the expression itself isn't working. Everything I've found online says it should. (I also tried -?\d*\.\d*) and it didn't work. I don't have a lot of experience with these, so I may have some obvious issue that I'm not seeing.
Thanks! Gwen