Python Snippet PPP Q59

Raw Python Snippet (WIP)

# Extract Numbers from a string


__author__ = "Mahtab Alam"

import re


def numbers(str):
    return re.findall('\d+', str)


s = "Python123"
num = numbers(s)
print(''.join(num))