Hello
Need to remove the space from the below sentences
Example
UiPath is a leading Robotic Process Automation (RPA) platform that helps organizations automate repetitive, rule-based business processes using software robots.
Hello
Need to remove the space from the below sentences
Example
UiPath is a leading Robotic Process Automation (RPA) platform that helps organizations automate repetitive, rule-based business processes using software robots.
Hi @Paul_Mark
Simply use the below system, just pass your string as stringVariable
System.Text.RegularExpressions.Regex.Replace(stringVariable,“\s”,“”)
Use predefined String function Replace like the
stringWithoutSpaces = originalString.Replace(" ", String.Empty)
Hi @Paul_Mark
Use this in assign activity
1: outputText = inputText.Replace(" ", "")
2: outputText = System.Text.RegularExpressions.Regex.Replace(inputText, "\s+", "")
Use below code if you want to remove extra spaces.
outputText = System.Text.RegularExpressions.Regex.Replace(inputText, "\s+", " ")
Thanks and Regards
Hi @Paul_Mark
Use this to remove all spaces from your sentence:
yourString.Replace(" ", “”)
For your example:
“UiPath is a leading Robotic Process Automation (RPA) platform…”.Replace(" ", “”)
This will return the full text without any spaces.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.