Question: You need to code the bool MyModel::checkDocumentNumber(QString n) function, which uses regular expressions to check that the document number meets a particular format (in the

You need to code the bool MyModel::checkDocumentNumber(QString n) function, which uses regular expressions to check that the document number meets a particular format (in the order given below). The first 3 characters should be GDL, POL, or RGL (for guidelines, policies, and regulations respectively). A slash. Exactly 3 arbitrary uppercase alphabetic characters. Another slash. A year value in the range from 1900 onwards. Using a validator, check whether the QString passed to the function is acceptable. Return true if it is, and false if not.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!