Home > other >  Regular expressions: why not?
Regular expressions: why not?

Time:12-02

 public static bool IsMatch (string STR) 
{
Return the Regex. IsMatch (STR, @ "^ (\)? \ d + (\ \ d {1, 2})? $");
}

In WPF is bad to use, it is positive or negative with 1 to 2 decimal places, but only positive integer input, can't enter a minus sign and the decimal point,
I thought for a long time, not as a result, a great god to please help!

CodePudding user response:

Finally want to understand,
  • Related