|
发表于 2023-8-5 13:14:24
|
显示全部楼层
湖南省永州市
变量名 | 类 型 | 静态 | 数组 | 备 注 | 局_正则 | 正则表达式类 | | | 局_匹配数 | 整数型 | | | 局_计次 | 整数型 | | | 局_子匹配数 | 整数型 | | |
如果真 (局_正则. 创建 (“<span class="+#引号+"list-title"+#引号+"[\s\S]*?([\u4e00-\u9fa5]*?)\$(.*?)</span>”, 源文本, 假, 假, 真) = 假) 信息框 (“正则创建失败,请检查正则表达式语句是否有误!”, #错误图标, ) 返回 (0 )局_匹配数 = 局_正则.取匹配数量 () 如果真 (局_匹配数 = 0 ) 信息框 (“匹配失败,请检检查正则语句是否有误,数量:0”, #错误图标, ) 返回 (0 )局_子匹配数 = 局_正则.取子匹配数量 () 计次循环首 (局_匹配数, 局_计次 ) 如果 (局_子匹配数 > 0 ) 输出调试文本 (“匹配文本 ” + 到文本 (局_计次 ) + “ 中的子匹配文本 1:” + 局_正则. 取子匹配文本 (局_计次, 1, ))  输出调试文本 (“匹配文本 ” + 到文本 (局_计次 ) + “ :” + 局_正则. 取匹配文本 (局_计次, ))   计次循环尾 ()返回 (局_匹配数 ) |
|