Skip to content

Action Edit Text

Transforms, extracts, or converts text and stores the result in a variable.

Inputs: 1 · Outputs: Then

Settings

SettingTypeRequiredDefaultDescription
Result Variable NameStringYesVariable where the modified text is saved.
OperationSelectYesTrim WhitespaceText operation to perform.
TextStringYesInput text or placeholder to operate on.
Extract TypeSelectYes (Extract)CharactersExtract by characters, words, before match/index, or after match/index.
Delete TypeSelectYes (Delete)CharactersDelete by character index/range or word index/range.
Match TextStringNoOptional match text for extraction instead of a numeric start index.
IndexStringNoZero-based index used by delete/extract operations.
Index 2 / LengthStringNoEnd index or character count, depending on operation.
Old TextStringYes (Replace)Text to search for.
New TextStringNoReplacement text.
Regex PatternStringYes (Regex)Regular expression pattern used by regex operations.
DelimiterStringYes (Split),Delimiter used to split text into an array.
Prepend TextStringNoText added before the input.
Append TextStringNoText added after the input.
Case TypeSelectYes (Change Case)UppercaseConverts text to uppercase, lowercase, or title case.
Convert ToSelectYes (Convert)NumberConverts the input to a number or a text string.
Match CaseBooleanNotrueWhether replace/regex matching is case-sensitive.
Replace All MatchesBooleanNotrueReplace every match instead of only the first match.

Operations

OperationWhat It Does
trimRemoves leading and trailing whitespace.
lengthStores the character count.
deleteDeletes characters or words at the selected index/range.
extractExtracts characters, words, text before a point, or text after a point.
replaceReplaces old text with new text.
regexMatches or replaces using a regular expression.
splitStores an array split by the delimiter.
add_affixPrepends and/or appends text.
caseChanges the text case.
convertConverts to a number or text string.

Example

Store a lowercase version of the first command argument:

  1. Text: %command.arg[1]%
  2. Operation: Change Case
  3. Case Type: Lowercase
  4. Result Variable Name: argument.normalized

Oasis Admin Editor Documentation