Filter
Description
This operation allows you to filter lines of text based on specific conditions or patterns. This operation is useful when you want to keep only lines that match a certain pattern or exclude lines that don't meet specific criteria.
Data types
These are the input/output expected data types for this operation:
Input data
String - The input strings to be split and filtered.
Output data
String - The filtered results after applying the regular expression and delimiter.
Parameters
These are the parameters you need to configure to use this operation (mandatory parameters are marked with a *):
Delimiter*
Choose the delimiter that separates each segment in your input data:
Space - Your segments are separated by spaces.
Comma - Your segments are separated by commas (
,)Semi-colon - Your segments are separated by semi-colons (
;)Colon - Your segments are separated by colons (
:)
Regex*
Define the pattern for filtering using a regular expression, which enables more complex matching conditions.
Invert*
Set this parameter to true if you want to reverse the filter logic, so it keeps lines that do not match the specified pattern.
Example
Suppose you want to filter a series of strings to extract only segments that start with error:
In your Pipeline, open the required Action configuration and select the input Field.
In the Operation field, choose Filter.
Set Delimiter to
SpaceSet Regex to
"^Error"Set Invert to
falseGive your Output field a name and click Save. The strings in your input field will be filtered with the specified conditions.
For example, this text:
will be filtered as:
You can try out operations with specific values using the Input field above the operation. You can enter the value in the example above and check the result in the Output field.
Last updated
Was this helpful?

