Script Elements for Editing Strings
The Automation Engine scripting language includes several elements that you can use to edit strings. The original strings remain unchanged. The new string is stored in a script variable.
Add, Replace or Remove Characters
-
Adds or removes leading zeros
-
Copies characters, optionally truncates leading or trailing characters
-
Deletes empty spaces at the beginning of a string
-
Extends a string to a certain length
-
Deletes empty spaces at the end of string
-
Replaces characters in a string
-
Removes empty spaces at the beginning and the end of a string
Number and Position of Characters
-
Returns the position of a given string
-
Returns the number of characters
Search and Compare Strings
-
Checks whether a string ends with a certain other string
-
Searches for a character or a string within a string, starting at the end of the string
-
Compares two strings
-
Checks whether a string starts with a certain other string
Combine or Split Strings
-
Concatenates two strings
-
Inserts a line break
-
Splits a string into several parts using a separator
Check Type and Case of Characters
-
Checks if a string is numeric
-
Checks whether the characters in a string are written in lowercase
-
Checks whether the characters in a string are written in uppercase
-
Converts all characters of a string to lowercase
-
Converts all characters of a string to uppercase
Convert Strings
-
Converts the name of a Job or report file to a RunID
-
Converts a script array to a string
-
Converts the data type of a value
-
Converts a string into hexadecimal form
-
Converts hexadecimal Control Return (CR) and Line Feed (LF) characters to strings
-
Converts the RunID to the corresponding file name
-
Reverses the order of the characters within a string
-
STR_SUBSTITUTE_VAR, STR_SUB_VAR
Replaces script variable names by their values
See also:
Script Statements and Functions for String and Text Processing