delete a string but the string is not terminated :     I need to delete around four thousand lines that contain SEU/C0 among around 25,000 lines
    Find SEU in following line:

    inpin "SEUC0/example_controller/U0/wrapper_wrappe/genx7.wrapper_controller/pid_reg<3>" A6 ,
   
   But the solution; I tried : 
I got this code from this forum suppose to do what I want but no luck
    
    f = open("test.xdl","r+")
    d = f.readlines()
    f.seek(0)
    for i in d:
    if i != "SEU":  # want to remove the SEU string
    f.write(i)
    f.truncate()
    f.close()
    
    When If if try
    
    i!="inpin SEUC0/ 
    
    it didn't work because it's a long string, and if I write
    "inpin "SEUC0/"" Python gives error.
    
    Is there anyway that I can remove all these lines which contain SEUC0.


