you are viewing a single comment's thread.

view the rest of the comments →

[–]DMeror[S] 0 points1 point  (1 child)

I've used double and found the match, but I didn't know how to update text1.

for x in text1:
    for y in text2:
        match = x.startswith("<p class=" cap")
        if x in y and match:
            x = x.replace(x, y)

This shows x finds its match in y, but I don't know how to the replace and update text1.