import re
string ="""
asdasd [##db.tb.hh|db.dd.cc|(0)|##] asdasdasd
asdasd [##sdsd|(0)|##] asdasdasd
asdasd [##123|##] asdasdasd
"""
result = re.findall(r"\[##[^#]*##]", string)
print result
aW1wb3J0IHJlCnN0cmluZyAgPSIiIgphc2Rhc2QgWyMjZGIudGIuaGh8ZGIuZGQuY2N8KDApfCMjXSBhc2Rhc2Rhc2QKYXNkYXNkIFsjI3Nkc2R8KDApfCMjXSBhc2Rhc2Rhc2QKYXNkYXNkIFsjIzEyM3wjI10gYXNkYXNkYXNkCgoiIiIKcmVzdWx0ID0gcmUuZmluZGFsbChyIlxbIyNbXiNdKiMjXSIsIHN0cmluZykKcHJpbnQgcmVzdWx0