web_reg_save_param_ex 用法
帮助文档中说:
web_reg_save_param_ex replaces the deprecated web_reg_save_param.
web_reg_save_param_ex可代替web_reg_save_param
举例:
web_reg_save_param_ex(
"ParamName=CodeParmTemp",
"LB=<input type=\"checkbox\" id=\"chkItem_",
"RB/RE=\" name=\"chkItem_......\"\r\n value='1' /",
"Ordinal=All",
SEARCH_FILTERS,
"Scope=Body",
"RequestUrl=http://secure3.xxx.com/rma/rmaadd.aspx?orderNumber={parmcode}",
LAST);
-------------------------
The LB or RB and LR arguments to web_reg_save_param_ex can take the following qualiers:
/IC - case insensitive. The boundary matches even if the case of the boundary value is not the same as the case in the string in the buffer.
/RE - The value is a regular expression. See Regular Expressions.
/BIN - The value is escaped binary code. See Entering Binary Code.
/IC 和 /BIN 在web_reg_save_param都是有的
/RE 是web_reg_save_param_ex才有 意思是左右边界的值可以使用正则表达式
"RB/RE=\" name=\"chkItem_......\"\r\n 中的......就表示任意字符了。
Scope 表示搜索的范围
RequestUrl 表示指定的请求(这个我感觉很好,因为一个操作,如点击一个按钮,可能有几个请求链接组成的,通过这个属性可以缩小范围)
Post Comment
2楼正解。正则表达式和通配符用法还是有些不同的地方。
怎么样也不行
错了 一个点表示一个字符
RB/RE=\" name=\"chkItem_......\"\r\n 中的......就表示任意字符了。
通配符是四个点 不是六个