Explain what this pattern exactly matches?
Hello guys, I've this regex pattern :
re.search(r'^(.).*\b.*\b\1', str1 + ' ' + str2)
So can someone explain what this pattern exactly matches?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Kiran MohantyRank #821 · 2.8K reputationPosted Mar 22, 2021, 8:04 AM EDT
Rohit GuptaRank #11 · 59.9K reputationPosted Mar 22, 2021, 7:53 AM EDT
Satya KarkiRank #78 · 24.6K reputationPosted Mar 22, 2021, 9:03 AM EDT
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Mar 22, 2021, 1:45 PM EDT
Rijwan AnsariRank #82 · 24.2K reputationPosted Mar 23, 2021, 12:40 AM EDT
Barathi98 reputationPosted Mar 23, 2021, 1:08 AM EDT