Question: subject python programing 1) Write a regular expression as a string (including the quotation marks) that matches the pattern of a last name, as follows:
subject python programing
1) Write a regular expression as a string (including the quotation marks) that matches the pattern of a last name, as follows: - must be between 1 and 32 characters total - must contain only letters and possibly an apostrophe and possibly a hyphen - must start with an uppercase letter - must contain all lowercase letters after the first letter except: the letter following an apostrophe or hyphen must be uppercase - the name must not end with an apostrophe or hyphen
2) Write a regular expression as a string (including the quotation marks) that matches the pattern of a specialized email address: a - must start with a letter (upper or lower case) b - must contain an @ sign c - must contain letters (any case) after the @ sign (also in addition to letters, can be the digits 0, 2, 4, 6, or 8) d - must contain a period after the characters listed in step c e - must contain 2-4 letters (any case) after the period
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
