You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Complete the function in the editor below by returning a RegExp object, re, that matches any string s satisfying both of the following conditions:
- String s starts with the prefix Mr., Mrs., Ms., Dr., or Er.
- The remainder of string s (i.e., the rest of the string after the prefix) consists of one or more upper and/or lowercase English alphabetic letters (i.e., [a-z] and [A-Z]).
Constraints
The length of string s is >= 3 .
Output Format
The function must return a RegExp object that matches any string s satisfying both of the given conditions.