The Python Oracle

How to use regex to tell if first and last character of a string match?

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Over a Mysterious Island

--

Chapters
00:00 How To Use Regex To Tell If First And Last Character Of A String Match?
00:34 Accepted Answer Score 7
01:29 Answer 2 Score 5
01:46 Answer 3 Score 2
02:05 Answer 4 Score 1
02:22 Answer 5 Score 0
02:39 Thank you

--

Full question
https://stackoverflow.com/questions/5509...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #regex #string

#avk47