脚本向导-帮助文档

脚本向导-帮助文档


为匹配场景示例

<p><img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/ba552bce5da98e4b077f33172e49b53e" alt="" /><img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/04ee2ce1074bf3b5bf423914e0eb10ef" alt="" /></p> <h1>匹配项</h1> <p>在输入字符串中搜索正则表达式的所有出现的位置,并返回所有成功的匹配项</p> <h1>输入</h1> <table> <thead> <tr> <th></th> </tr> </thead> <tbody> <tr> <td>模式</td> <td>[string]自定义</td> <td>要匹配的正则表达式的模式</td> </tr> <tr> <td>输入</td> <td>[string]自定义</td> <td>要搜索匹配项的字符串</td> </tr> <tr> <td>正则表达式选项</td> <td>[Integer]自定义</td> </tr> <tr> <td>替换</td> <td>[string]自定义</td> <td>替换字符串</td> </tr> </tbody> </table> <h1>输出</h1> <table> <thead> <tr> <th></th> </tr> </thead> <tbody> <tr> <td>结果</td> <td>[string]自定义</td> <td>与输入字符串相同的新字符串,但替换字符串将代替每个匹配的字符串</td> </tr> </tbody> </table> <h1>示例/演示</h1> <p>var bFunctionSuccess: Boolean; sFunctionError: string; tmp_Result17626140: String; variable1{str}: TObject; begin bFunctionSuccess := False; sFunctionError := ''; variable1 := nil; Result := ''; Trace('[debug](Execute Line): 16'); SetRPALastError(''); bFunctionSuccess := RPAProgrammingReplace('', '', 34, '', tmp_Result17626140); if (not (False)) and (bFunctionSuccess = False) then begin Trace('[debug](Error Line): 16'); SetTargetLVD('严重', '替换', GetRPALastErrorString()); Exit; end; if (bFunctionSuccess = False) and (GetRPALastErrorString() = '') then SetRPALastError('替换'); end;</p>

页面列表

ITEM_HTML