โ† Acko questions

Regex for matching first and last character

Filed under Acko

The question

Design a regular expression that returns true if the first character of a given string is the same as the last character.

No write-up yet. Related questions below have one.

Related Acko questions

Collected from public candidate posts and coding forums. Updated Nov 2026.