下载
chariot plugin download chariot/re_array_traversal:0.1.0
描述
数组中的每一条数据都用作常规条件数据以进行常规匹配
动作
- 将数组中的每一个数据用正则规则组合起来,形成正则表达式。用于批量配对
plugin_spec_version: v2
name: re_array_traversal
title: 数组遍历正则匹配
description: 数组中的每一条数据都用作常规条件数据以进行常规匹配
version: 0.1.0
sdk: 1.3.1
vendor: chariot
tags:
- Regex
actions:
re_array:
title: 数组正则
description: 将数组中的每一个数据用正则规则组合起来,形成正则表达式。用于批量配对
input:
data:
title:
en: The data that will be matched
zh-CN: 将进行匹配的数据
type: string
required: true
array:
title:
en: Regular matching array
zh-CN: 正则匹配数组
description:
en: Set the rules for regular expression to match
zh-CN: 遍历数组中的数据,把每一条数据与正则规则结合生成正则表达式与将要匹配的数据进行匹配
type: "[]string"
required: true
reg_before:
title:
en: Regular rule header
zh-CN: 正则规则头
description:
en: 'Default setting: ''.*''.Stitch with a piece of data in a regular array'
zh-CN: 默认设置:'.*'。与正则数组中的某条数据拼接如:'.*'+'data'='.*data'
type: string
default: ".*"
reg_after:
title:
en: Regular rule end
zh-CN: 正则规则尾
description:
en: 'Default setting: ''.*''.Stitch with a piece of data in a regular array'
zh-CN: 与正则数组中的某条数据拼接如:'data'+'$'='data$'
type: string
output:
code:
title:
en: Status code
zh-CN: 状态码
description:
en: '200: Regular match successful, 400, regular match failed'
zh-CN: 200:正则匹配成功,400,正则匹配失败
type: string
content:
title:
en: Content
zh-CN: 内容
type: string