正则表达式对象
以下对象与 regexp API 直接相关。
正则表达式
全局正则表达式对象具有以下属性。
| Property | Type | Description |
|---|---|---|
| regexpid | ID | 正则表达式的 ID。 Property behavior: - read-only - required for update operations. |
| name | string | 正则表达式的名称。 Property behavior: - required for create operations. |
| description | text | 正则表达式的描述。 |
| test_string | string | 测试字符串。 |
表达式
expressions 对象具有以下属性。
| Property | Type | Description |
|---|---|---|
| expression | string | 正则表达式。 Property behavior: - required |
| expression_type | integer | 正则表达式类型。 可能的值: 0 - 包含字符串; 1 - 包含列表中的任意子字符串; 2 - 不包含字符串; 3 - 匹配正则表达式; 4 - 不匹配正则表达式。 Property behavior: - required |
| exp_delimiter | string | 表达式分隔符。 默认值: ","。可能的值: ","、"." 或 "/"。Property behavior: - 当 expression_type 设置为 Contains any substring from list 时,supported。 |
| case_sensitive | integer | 大小写敏感性。 默认值: 0。可能的值: 0 - 不区分大小写; 1 - 区分大小写。 |