Unable to replace the highlighted from string

Hi, I am not able to remove, or replace the yellow highlighted from the string.

I have used the inputString.Replace(“”, “”).trim
but this are not working here. As This text is coming from the Output Data Table Activity in a string variable.

I want to replace this by special character. So here nothing is working. can you look into that

@Sugumar8785 @Palaniyappan @lakshman

2 Likes

Did we try like this
Strinput.ToString.Replace(“\r\n”,””).Trim

Cheers @balkishan

2 Likes

This method is not helping us, If this would work already resolve the issue.

1 Like

Fine \r\n coming as a string or as a value
If it’s a string the above method would work
Or
If it’s a value then mention as
string out_str = in_str.Replace(Environment.Newline,“”)
or
string out_st = in_str.Replace(VbCrLf,“”)

Cheers @balkishan

4 Likes

string only, but this above method is not working. Already tried bro.

@balkishan Can you show the workflow as we are not sure how you are trying and what is the outcome.

2 Likes

If you in the snapshot some character are in string format and some are not. Here I the replace is not working. I want to replace this patter with unique character so that it’s easy to recognized each lines. @Sugumar8785 @Palaniyappan

2 Likes

Capture

@Palaniyappan

1 Like

Can I have the input string in a txt file if possible
Cheers @balkishan

Hey Man @balkishan

Try String.Replace(“”“”, “”)

I had the extact same problem as you with the datatable. Try this and it should work. :smile: