String before delimiter(分隔符前字符串(String before delimiter))¶
Supported in: Batch, Faster, Streaming
Extract the string before the first delimiter. Return the full string if no matches are found.
Expression categories: String
Declared arguments¶
- Delimiter: Regex expression of delimiter.
Regex - Expression: no description
Expression\ - Ignore case: no description
Literal\
Output type: String
Examples¶
Example 1: Base case¶
Argument values:
- Delimiter: hello
- Expression: ... Hello world
- Ignore case: false
Output: ... Hello world
Example 2: Base case¶
Argument values:
- Delimiter: Hello
- Expression: ... Hello world
- Ignore case: false
Output: ...
Example 3: Base case¶
Argument values:
- Delimiter: hello
- Expression: ... Hello world
- Ignore case: true
Output: ...
Example 4: Null case¶
Argument values:
- Delimiter: Hello
- Expression: null
- Ignore case: false
Output: null
中文翻译¶
分隔符前字符串(String before delimiter)¶
支持:批处理(Batch)、快速处理(Faster)、流处理(Streaming)
提取第一个分隔符之前的字符串。若未找到匹配项,则返回完整字符串。
表达式类别: 字符串(String)
声明的参数¶
- 分隔符(Delimiter): 分隔符的正则表达式。
正则表达式(Regex) - 表达式(Expression): 无描述
表达式\ - 忽略大小写(Ignore case): 无描述
字面量\
输出类型: String
示例¶
示例 1:基础情况¶
参数值:
- 分隔符: hello
- 表达式: ... Hello world
- 忽略大小写: false
输出: ... Hello world
示例 2:基础情况¶
参数值:
- 分隔符: Hello
- 表达式: ... Hello world
- 忽略大小写: false
输出: ...
示例 3:基础情况¶
参数值:
- 分隔符: hello
- 表达式: ... Hello world
- 忽略大小写: true
输出: ...
示例 4:空值情况¶
参数值:
- 分隔符: Hello
- 表达式: null
- 忽略大小写: false
输出: null