Matching Same Text Again & Again – HackerRank Solution

In this post, we will solve Matching Same Text Again & Again HackerRank Solution. This problem (Matching Same Text Again & Again) is a part of HackerRank Regex series.

Solution – Matching Same Text Again & Again – HackerRank Solution

Python

Regex_Pattern = r'([a-z]\w\s\W\d\D[A-Z][a-zA-Z][aeiouAEIOU]\S)\1'    

import re

print(str(bool(re.search(Regex_Pattern, input()))).lower())

Note: This problem (Matching Same Text Again & Again) is generated by HackerRank but the solution is provided by CodingBroz. This tutorial is only for Educational and Learning purpose.

Leave a Comment

Your email address will not be published. Required fields are marked *