Clear white space

Hi when i use get full text , i am getting extra white space , how can i remove it ?


image

@xiangyun.koh

If the whitespace is at ends then use Variable.Trim

Ifthewhitespaces are inbetween and need to remove multiple and use onlyone then use below in assign

variable = System.Text.RegularExpressions.Regex.Replace(varible,"\s{2,}"," ") this ensures any spaces two or more will be replaced with single one…

Cheers

You can use variablename.replace(" “,”")

@xiangyun.koh

  1. Drag and drop the “Get Full Text” activity to extract the text.
  2. Add an “Assign” activity below the “Get Full Text” activity.
  3. In the “To” field of the “Assign” activity, specify a variable to store the cleaned text.
  4. In the “Value” field of the “Assign” activity, use the String.Replace method to replace multiple spaces with a single space. For example:

cleanedText = extractedText.Replace(" ", “”)

Replace extractedText with the variable that stores the text obtained from the “Get Full Text” activity.

where do write this expression at : System.Text.RegularExpressions.Regex.Replace(varible,“\s{2,}”," ")

@xiangyun.koh

on the right side of assign activity

cheers