Support Portal

for ProcessRobot and WinAutomation

Start a new topic
Answered

remove spaces between strings

Hi,


I want to remove the spaces from the strings.


For Ex:- 

Input:- I am     using cr   ome brower.


Expected Output:- I am using crome brower.


Please guide me on this issue.


Thanks in advance.




Best Answer

Jayesh,

You can use regular expressions with the Replace Text action, as below. 

Please be aware it will not know what separated strings make up an actual word (it is not possible to know what separated text could be an actual word.

So in your example you will need to tell it to look "First" specifically for the separated word "c   rome" to remove its spaces and then second remove 2 or more spaces appearing in in the input text with only 1 space.

Note:  The below will work even if your spaces are tabs too.

image


1 Comment

Answer

Jayesh,

You can use regular expressions with the Replace Text action, as below. 

Please be aware it will not know what separated strings make up an actual word (it is not possible to know what separated text could be an actual word.

So in your example you will need to tell it to look "First" specifically for the separated word "c   rome" to remove its spaces and then second remove 2 or more spaces appearing in in the input text with only 1 space.

Note:  The below will work even if your spaces are tabs too.

image


Login or Signup to post a comment