Question: Suppose that the only characters allowed in a user name are letters, digits, an underscore (_), a hyphen (-), or a period (.). Write a
Suppose that the only characters allowed in a user name are letters, digits, an underscore (_), a hyphen (-), or a period (.).
Write a boolean expression that is true only if the variable user_name contains a valid user name.
You must use one or more regular expressions.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
