Home > Back-end >  Ask for help
Ask for help

Time:09-24

CodePudding user response:

 
UnicodeString testStr (" 201110039 ");
UnicodeString pattern (" [1-9] \ \ d * \ \ d {2} $");
TRegExOptions opts;
OptsTRegEx * regex=new TRegEx (pattern, opts);
If (regex - & gt; IsMatch (testStr))
ShowMessage (testStr);
The else
ShowMessage (L "error");

  • Related