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 

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

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 Programming Questions!