Skip to content

Text.RemovePunctuations

Rodrigo Celso de Lima Porto edited this page Jan 13, 2026 · 1 revision

Removes all punctuation characters from a text string.

Syntax

Text.RemovePunctuations(
    textToRemove as nullable text,
    optional replacer as text
) as text

Parameters

  • textToRemove: The text string from which to remove punctuation characters.
  • replacer (optional): A text string to replace punctuation characters with. If omitted, punctuation characters are removed without replacement.

Return Value

Returns the input text with all punctuation characters removed or replaced by the specified replacer.

Examples

Example 1: Removes all punctuations in a text.

Text.RemovePunctuations("Hello, World!") 

Result

"Hello World"

Example 2: Replaces all punctuations in a text by a specified character.

Text.RemovePunctuations("Hello, World!", " ")

Result

"Hello  World "

Clone this wiki locally