you need to match the text as follows:The alt tag is not required to be hello and cannot be the same as the image name in Src .yingwen"/>yingwen" src= "en/images/main_page/cover.jpg"/>Material2" name= "Material2" width= "130" height= "border=" 0 "id=" Materia12 "onmouseover=" mm_swapimage (' Material2 ', ', ' images/en_adu_1_6_1_submenu_ 07in.gif ', 1) "onmouseout=" Mm_swapimgrestore () "/>The
There are three ways: the first two usages are common, the latter infrequently used, but very concise]+ (? <=alt=")(?! hello|\2) ([a-za-z]+) [^>]*src=["']? ([^"']+\/(\w+). (?: jpg|gif|png))"|]+ (? <=src=["']?) ([^"']+\/(\w+). (?: jpg|gif|png))"[^>]*alt="(?! Hello|\5) [a-za-z]+[^>]*> ]*src="(?:[^"]*/)? ([^"\.] *)\. [^"]*") (? =[^>]*alt="(?! Hello")(?! \1) [^"]+") [^>]*/> (? =.*?/([a-za-z0-9_]+) \. (?: jpg|gif|png)) ]+?alt="(?! \1|hello") [a-za-z0-9._]+"[^>]*>The following is commonly used to remove the value from the input tag,Name value, position is not fixed, is the extension of the above method<input\b (? =[^>]*value=\s*["']? ([^"]*)) (? =[^>]*name=\s*["']? ([^"]*)) [^>]*> (? =.*?value=\s*["']? ([^"]*)) <input[^>]+name=["']? ([^"]+)"[^>]*>
Match the value of the HTML input img tag in the name position is not fixed