Question: Develop a regular expression to produce correct registration codes. You may use either a Python or Perl representation for your regular expressions but be
Develop a regular expression to produce correct registration codes. You may use either a Python or Perl representation for your regular expressions but be sure to specify which you have used. (3) b) Use an example code of each form to show that your regular expression works as intended. (2) c) Describe the pattern(string of characters) matched by the following regular expression (RE): /^[a-z]+\s{1,}([\.I\?I\!][0-9]+)\s{1,}[A-Z_]+\!$/ vi. (3) (d) Wift the following pattern be matched by the RE in c? Give a reason for your answer. my password is mylife .497 if you must know! (2)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
