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.
^[A-Z] → Ensures the string starts with an uppercase letter.
\d{3} → Matches three digits.
\w → Matches one word character (letter, digit, or underscore).
\?$ → Ensures the string ends with a question mark (?).
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Matching Start & End
You are viewing a single comment's thread. Return to all comments →
^[A-Z] → Ensures the string starts with an uppercase letter. \d{3} → Matches three digits. \w → Matches one word character (letter, digit, or underscore). \?$ → Ensures the string ends with a question mark (?).