web_reg_save_param_ex简介
2021-07-12 17:07
- Save Offset
设置关联的内容偏移量,从第几位开始进行关联操作。回到最开始的例子,我们抓取的是You have successfully installed XAMPP on this system!,如果需要获得successfully installed XAMPP on this system!这个字符串,则不用改变左边界,只需要设置Save Offset为9即可,代码为:
web_reg_save_param_ex(
"ParamName=temp",
"LB=Congratulations:
",
"RB=
",
"Ordinal=1",
"SaveOffset=9",
SEARCH_FILTERS,
"ContentType=text/html",
LAST);
- Save Length
关联出来的内容所需要保存的长度。在Save Offset的例子中我们写到如何获得successfully installed XAMPP on this system!这个字符串,如果我们还希望获得这个字符串中的successfully installed XAMPP,那么可以再添加Save Length为22,代码变为:
web_reg_save_param_ex(
"ParamName=temp",
"LB=Congratulations:
",
"RB=
",
"Ordinal=1",
"SaveOffset=9",
"SaveLen=22",
SEARCH_FILTERS,
"ContentType=text/html",
LAST);
文章标题:web_reg_save_param_ex简介
文章链接:http://soscw.com/index.php/essay/104257.html