CodingReported in a candidate post, Sep 2020
Regex matching strings whose first and last character are equal
Filed under Acko
The question
Write a regular expression returning true if the first character of a string equals the last, where the string uses only a and b.
No write-up yet. Related questions below have one.
Related Acko questions
Collected from public candidate posts and coding forums. Updated Nov 2026.