Skip to main content
Skip table of contents

Regular Expression

This adapter searches an input text document for a pattern specified in a regular expression (Regex) and outputs an XML document containing an XML element for each matching line.

Properties

Operation

Determines which operation the adapter executes

Possible values: Grep: Search text document according to the pattern specified in parameter pattern.

Parameters

Adapter

Main class of the adapter (do not change!)

Possible values: en.softproject.integration.adapter.grep.Grep: Main class (default)

pattern

Regex pattern being searched for (regular expression)

Possible values: Any regular expression (e.g. .*Test.*)

Status values

1The operation was executed successfully.
-1The operation failed due to a technical error.

Output

This adapter outputs a UTF-8 encoded XML document with the following structure. For each matching line, an XML element <Line/> is created that contains the line number and the content of the respective line:

HTML/XML
<Text>
   <Line lineNo="Zeilennummer">Inhalt der Zeile</Line>
</Text>
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.