Remove obejcts from list if specific characters are included
Hi, I have a list with links and I want to remove links that include specific words or characters. Example: link_list = ["www.hello.com", "www.howareyou?.com", "www.example.com", "www.???.com"] Now I want to remove every link that includes a question mark so that my outcome is: Result example: link_list = ["www.hello.com", "www.example.com"] I can't find my solution in the normal commands like .pop or .remove. Whenever I try I have to specify exactly which link I want to remove like: link_list.remove("www.howareyou?.com") But I don't want to be this specific because I have too many links. I just want to remove all of the links that include a specific word or character. I'm sorry for my English but I hope it's understandable what I mean. Thank you in advance.