Create a Python program to convert a given string to an integer by removing all non-numeric characters.
"29A3B8746"
def remove_non_numeric(str):
 res = ""
 for c in str:
 if c.isnumeric():
 res += c
 return int(res)

s = "29A3B8746"
integer = remove_non_numeric(s)
print(integer) // 2938746