regex to extract HTML attribute value

前端 未结 1 1425
不思量自难忘°
不思量自难忘° 2020-12-21 20:38

I have the following HTML

TO :

        
相关标签:
1条回答
  • 2020-12-21 21:09

    Using JMeter, use Regular Expression Extractor to achieve this task.

    Reference Name: mynum
    Regular Expression: value="(.+?)"
    Template: $1$
    Match No.: 1
    

    If you specify using a Match No:, the rules are as follows:

    0 = Random Match
    1 = First Match 
    2 = Second Match
    etc....
    

    And then you can use the corresponding variable to access the match. ${mynum_1}

    0 讨论(0)
提交回复
热议问题