Get the value of an HTML element

后端 未结 4 1629
执念已碎
执念已碎 2020-12-19 10:43

I have the HTML code of a webpage in a text file. I\'d like my program to return the value that is in a tag. E.g. I want to get \"Julius\" out of



        
4条回答
  •  独厮守ぢ
    2020-12-19 11:26

    i've asked the same question few days ago and ened up using HTML Agility Pack, but here is the regular expressions that you want

    this one will ignore the attributes

    ]*>(.*?)
    

    this one will consider the attributes

    
    

提交回复
热议问题