String after delimiter(字符串分隔符后提取)¶
Supported in: Batch, Faster, Streaming
Extract the string after the first delimiter. Return full string if no matches are found.
Expression categories: String
Declared arguments¶
- Delimiter: Regex expression of delimiter.
Regex - Expression: Input to perform regex operation on.
Expression\ - Ignore case: Should the regex ignore case.
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: world
Example 3: Base case¶
Argument values:
- Delimiter: hello
- Expression: ... Hello world
- Ignore case: true
Output: world
Example 4: Null case¶
Argument values:
- Delimiter: Hello
- Expression: null
- Ignore case: false
Output: null
Example 5: Edge case¶
Argument values:
- Delimiter: Hello
- Expression: ... Hello Hello world
- Ignore case: false
Output: Hello world
中文翻译¶
字符串分隔符后提取¶
支持:批处理(Batch)、快速处理(Faster)、流处理(Streaming)
提取第一个分隔符之后的字符串。如果未找到匹配项,则返回完整字符串。
表达式类别: 字符串(String)
声明参数¶
- 分隔符(Delimiter): 分隔符的正则表达式(Regex)。
正则表达式(Regex) - 表达式(Expression): 执行正则表达式操作的输入。
表达式\ - 忽略大小写(Ignore case): 正则表达式是否忽略大小写。
字面量\
输出类型: 字符串(String)
示例¶
示例1:基础情况¶
参数值:
- 分隔符: hello
- 表达式: ... Hello world
- 忽略大小写: false
输出: ... Hello world
示例2:基础情况¶
参数值:
- 分隔符: Hello
- 表达式: ... Hello world
- 忽略大小写: false
输出: world
示例3:基础情况¶
参数值:
- 分隔符: hello
- 表达式: ... Hello world
- 忽略大小写: true
输出: world
示例4:空值情况¶
参数值:
- 分隔符: Hello
- 表达式: null
- 忽略大小写: false
输出: null
示例5:边界情况¶
参数值:
- 分隔符: Hello
- 表达式: ... Hello Hello world
- 忽略大小写: false
输出: Hello world