We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Alternative Matching
Alternative Matching
Sort by
recency
|
161 Discussions
|
Please Login in order to post a comment
Regex_Pattern = r'^(Mr.|Mrs.|Ms.|Dr.|Er.)[a-zA-Z]+$'
Java 15:
JavaScript:
var Regex_Pattern = /^(Mr|Mrs|Ms|Dr|Er){1}.[a-zA-Z]+$/;
pasess all test cases
Regex_Pattern = r'^(Mrs|Mr|Ms|Dr|Er)[\.][a-zA-Z]+$'
why this regex not worked for testcase 1 (Mr#DOSHI) is matched correctly how ?
**explain anyone **