Matching Start & End

  • + 0 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 (?).