html删减最后一个字符,从匹配正则表达式的结果中删除最后一个字符

我正试图在jmeter测试中提取一部分html.

我需要从< script src =“”标记中提取一部分.

>完整脚本src:

< script src =“/ Paginas / Inicializacao / AguardarAcao.aspx?_TSM_HiddenField_ = ctl00_ToolkitScriptManager1_HiddenField& amp; _TSM_CombinedScripts _ = ;; AjaxControlToolkit,Version = 1.0.11119.38311,Culture = neutral,PublicKeyToken = 28f01b0e84b6d53e:pt-BR:df9c6e46-ef8c-4a3d -89af-f80adf22e9c2:865923e8:411fea1c:e7c87f07:91bd373d:1d58b08c:8e72a662:acd642d2:596d588c:77c58d20:14b56adc:269a19ae“type =”text / javascript“>< / script>

>我只需要:

;; AjaxControlToolkit,Version = 1.0.11119.38311,Culture = neutral,PublicKeyToken = 28f01b0e84b6d53e:pt-BR:df9c6e46-ef8c-4a3d-89af-f80adf22e9c2:865923e8:411fea1c:e7c87f07:91bd373d:1d58b08c:8e72a662:acd642d2:596d588c:77c58d20: 14b56adc:269a19ae

现在我创建了这个正则表达式:

%3b.*"

匹配:

%3b%3bAjaxControlToolkit%2c+Version%3d1.0.11119.38311%2c+Culture%3dneutral%2c+PublicKeyToken%3d28f01b0e84b6d53e%3apt-BR%3adf9c6e46-ef8c-4a3d-89af-f80adf22e9c2%3a865923e8%3a411fea1c%3ae7c87f07%3a91bd373d%3a1d58b08c%3a8e72a662%3aacd642d2%3a596d588c%3a77c58d20%3a14b56adc%3a269a19ae"

但我不想要最后两个字符(一个空格)和“.

如何删除最后两个字符?

你可能感兴趣的:(html删减最后一个字符)