Skip to end of metadata
Go to start of metadata

Author

Loretta Auvil

Creation date

06/06/2011

Firing policy

all

Package

org.seasr.meandre.components.tools.basic

DESCRIPTION

Searches the text input for the regular expression pattern. If the pattern is found and the regular expression specifies a capturing group, then the matching text for the capturing group is pushed out on port Text_Found. If the pattern is found and there are no capturing groups defined, the maching text for the pattern is pushed out on port Text_Found. In both cases multiple outputs are possible.If the pattern is not found, it outputs the original text on port Text.

INPUTS

Name

Description

Example

text
Text to be searched.
TYPE: java.lang.String
TYPE: org.seasr.datatypes.BasicDataTypes.Strings
TYPE: byte[]
TYPE: org.seasr.datatypes.BasicDataTypes.Bytes
TYPE: java.lang.Object

 

OUTPUTS

Name

Description

Example

error
This port is used to output any unhandled errors encountered during the execution of this component

 

text_found
The matching text that satisfies the regular expression.
TYPE: org.seasr.datatypes.BasicDataTypes.Strings

 

text
The searched text.
TYPE: org.seasr.datatypes.BasicDataTypes.Strings

 

PROPERTIES

Name

Description

Default value

_debug_level
Controls the verbosity of debug messages printed by the component during execution.
Possible values are: off, severe, warning, info, config, fine, finer, finest, all
Append ',mirror' to any of the values above to mirror that output to the server logs.
info
_stream_id
Defines the stream id used to identify a particular stream of data
expression
The regular expression to use as search criteria.
.+\.pdf
_ignore_errors
Set to 'true' to ignore all unhandled exceptions and prevent the flow from being terminated. Setting this property to 'false' will result in the flow being terminated in the event an unhandled exception is thrown during the execution of this component
false
wrap_stream
Should the output be wrapped as a stream?
true
Write a comment…