Matching Word Boundaries – HackerRank Solution

In this post, we will solve Matching Word Boundaries HackerRank Solution. This problem (Matching Word Boundaries) is a part of HackerRank Regex series.

Matching Word Boundaries – HackerRank Solution

Python

Regex_Pattern = r'\b[aeiouAEIOU][a-zA-Z]*\b'    # Do not delete 'r'.


import re

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

Note: This problem (Matching Word Boundaries) 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 *