Write a regular expression that validates strings starting and ending with the same character. A string is considered beautiful if it starts and ends with the same character.
Given a list of strings made up of the characters 'a' and 'b', create a regular expression that will match strings that begin and end with the same letter.
Replace the blank (______.) with a regular expression that matches strings as described. Locked code in the editor prints True for each correct match and False for each incorrect match.
Strings "a", "aa", and "bababbb" match. Strings "ab" and "baba" do not match.
MyKaarma • Pending