Question: Python code Write a regular expression as a string (including the quotation marks) that matches the pattern of a last name, as follows: - must
Python code
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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
