I am new to python regex
. I want to match the pattern 'word.word'. For example:
s = '''seven hundred people found dead devastating seven.eight magnitude earthquake hits Nepal'''
re.findall(r'^[\w]*[.]*[\w]*', s, flags=re.IGNORECASE)
It finds only the first word. Can not figure out a way to solve this. Thanks for any support.