Search and Replace Text
The Search and Replace Text object
searches for and replaces text that you specify in a text
file.
Note: This object replaces
functionality in the
Manage Text File Legacy
object. For more information, see the
Legacy topic.
How it is used
Use the Search and Replace Text
object to search for text that you specify and replace it with
other text.
Configuration
To configure the Search and Replace
Text object you need to know the name of the file that you want to
search in, the encoding it uses, the text that you want to search
for, and the text that you want to replace it with.
Details Tab
File
|
Type the path and name of the
file that you want to read the text from, or click the ellipsis
button (...) and browse for
it.
|
File encoding
|
Click the ellipsis button
(...) and select the format
that the file is encoded in from the File encoding drop-down list. Verify
that you select the correct encoding format: if the file uses a
different encoding format, the object fails.
|
Search text
|
Type the text that you are
searching for in the file.
|
Use regular expressions
|
Select this option to use
regular expressions in your search. For more information on regular
expressions, see the “Regular Expressions” topic in the Opalis
Integration Server Online Help.
|
Case sensitive
|
Select this option to search
only for lines where the case of the words matches the text from
the Search
text field exactly.
|
Replacement text
|
Type the text that you want to
replace the search text with.
|
Available Published Data
Name
|
Description
|
Case sensitive
|
Indicates whether the
Case sensitive check box
was checked or not.
|
File encoding
|
The file encoding format that
you selected in the File
encoding field.
|
File name
|
The name of the file that was
searched for text.
|
Line number of match
|
The line number where matching
text was found.
|
Modified line
|
The entire line of text as it
was written after the replace operations occurred.
|
Number of lines matched
|
The number of lines where
matching text was found.
|
Number of matches
|
The number of matching items
that were found.
|
Original line
|
The entire line of text as it
was written before the replace operation occurred.
|
Replace text
|
The text that was used to
replace the search text.
|
Search text
|
The search string that was used
for the search.
|
Use Regex
|
Indicates whether the
Use regular expressions
check box was checked or not.
|