How to replace enter key or next line on text with ""

studio

#1

Hi,

I am having challenges with removing enter keys from a series of data scraped in UiPath. Data appearing on output pane is:

Employee ID: 12345
Employee Name: John D
Group: RSR

I am trying to remove the enter keys in between the 3 line items with .Replace but am unsuccessful.

Thanks in advance!


#2

@richmond.bpoi, Lets say you have the following in a string (str),

Implement either of these mentioned below in an Assign Activity,

  1. str.Replace(vblf,“desired replacing character”)
  2. str.Replace(Environment.NewLine,“desired replacing character”)

Note: Go through forum posts.

Regards,
Dominic :slight_smile:


#3

thank you very much!!! the second one worked but not the first.