fork download
  1. import re
  2. string ="""
  3. asdasd [##db.tb.hh|db.dd.cc|(0)|##] asdasdasd
  4. asdasd [##sdsd|(0)|##] asdasdasd
  5. asdasd [##123|##] asdasdasd
  6.  
  7. """
  8. result = re.findall(r"\[##[^#]*##]", string)
  9. print result
Success #stdin #stdout 0s 23352KB
stdin
Standard input is empty
stdout
['[##db.tb.hh|db.dd.cc|(0)|##]', '[##sdsd|(0)|##]', '[##123|##]']