import re
out = '''
<change://problem/59689726> This is a test1
change://1234567 This is a test2
[Problem]
This is problem desription
'''
m = re.findall("change://(?:problem/)?(\d+)", out.split('[Problem]')[0])
if m:
    for radar in set(m):
        print (radar)