remove some string from a text file
Clash Royale CLAN TAG#URR8PPP
remove some string from a text file
in python3.7 , I have a text file and i want to remove a part of text.for Ex :
helloooooooooooooo ### 122
How Are uuuuuuuuuuuuuuuuuuuuu?
GigaEthernet 0 1 0
GigaEthernet 1 2 0
GigaEthernet 2 1 3
helloooooooooooooo ### 122
helloooooooooooooo ### 122
i want the text file change to:
GigaEthernet 0 1 0
GigaEthernet 1 2 0
GigaEthernet 2 1 3
it maybe "FastEthernet" instead of GigaEthernet so we should consider "Ethernet" as a key word)
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.