using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { //int number; //int count = 7; //string checkCode =
https://segmentfault.com/q/1010000010845573 import re #reg=r'\s+[^(href)]*=\"[^<>]+\"' reg = r'\b(?!(?:href|src))\w+=(["\']).+?\1' with open(r'input.txt','r',encoding='ISO-8859-15') as f_read: html= f_read.read() result = re.sub(reg,&