'Extract Regular expressions match found

So I'm trying to extract the match output that was found using Regular Expressions.

Code:

import re

def findWholeWord(w):
    return re.compile(r'\b({0})\b'.format(w), flags=re.IGNORECASE).search

match = findWholeWord('seek')('seek the great glory')
print(match)

Output:

<re.Match object; span=(0, 4), match='seek'>

But I want text like, "MATCH FOUND: seek".

How can I do this? My knowledge of Python is not that much.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source