ReplaceText
public struct ReplaceText : Shortcut
Replaces some text with other text.
Input: Text
Result: Text
-
The contents of the shortcut.
Declaration
Swift
public var body: some Shortcut { get } -
Initializes the shortcut.
Declaration
Parameters
textThe text within which to search and replace.
targetThe text to be replaced.
replacementThe text with which to replace all occurrences.
isCaseSensitiveWhen disabled, the capitalization of letters is ignored.
isRegularExpressionWhen enabled, the target is treated as a regular expression.
-
Initializes the shortcut.
Declaration
Parameters
variableThe variable in whose content to search and replace.
targetThe text to be replaced.
replacementThe text with which to replace all occurrences.
isCaseSensitiveWhen disabled, the capitalization of letters is ignored.
isRegularExpressionWhen enabled, the target is treated as a regular expression.
View on GitHub
ReplaceText Structure Reference