Author |
Boris Capitanu |
Creation date |
06/06/2011 |
Firing policy |
all |
Package |
org.seasr.meandre.components.transform.text |
DESCRIPTION
Performs find and replace on text using regular expressions
INPUTS
Name |
Description |
Example |
|---|---|---|
text |
The text to clean or replace 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 |
The cleaned or replaced text TYPE: org.seasr.datatypes.BasicDataTypes.Strings |
|
PROPERTIES
Name |
Description |
Default value |
|---|---|---|
replace4 |
The replacement to substitute the matched substring found by find4. |
|
replace3 |
The replacement to substitute the matched substring found by find3. |
|
replace2 |
The replacement to substitute the matched substring found by find2. |
|
replace |
The replacement to substitute the matched substring found by find. If the replacement string needs to contain the literals $ and \ then they should be escaped because they have special meaning. For example, as part of the replacement string one can use '$1' to refer to the first capturing group defined in the regular expression for find, $2 for the second, and so on. If the literal '$1' is desired, then it should be escaped as '\$1'. |
|
_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 |
find |
The regular expression to find the matched substring. For example, if specifying the regular expression as 'push' and the replacement as 'pushing', then the sequence of characters 'push' contained in any word is substituted with 'pushing'. Additionally, capturing groups can be used and referenced in the replacement string as $1 for the first capturing group, $2 for second, and so on. |
|
find4 |
The regular expression to find the matched substring. |
|
find3 |
The regular expression to find the matched substring. |
|
find2 |
The regular expression to find the matched substring. |
|
_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 |
Add Comment