How to replace " by blank space?

Hello,

I have the next string: Hi there " this is me

I would like to replace the symbol " into a blank space so that the string will be: Hi there this is me

How could I do it?

I tried to do it like: string.replace(“”“,” ") but it does not work

If MyString is your string with "Hi there '' this is me", you can use the following to replace the text: MyString.Replace("'' ", String.Empty).

1 Like

Hello,

thanks for your answer. The point is that my string has " not ’ ’

String.replace(@“”“,” “)
String.Replace(”"“,” ")

1 Like

@EngAnalyst,

This should work
String.Replace(""""," ")

if it doesnt then this should work:
String.Replace(chr(34), " ")

and if it doesn’t … dude, just kill me :joy:

8 Likes

let us know which one worked for you out of the two solutions given by @SenzoD

@Ashish_Verma,

They both work, and they are both just the same thing the double-quote character is represented by 34 in the ASCII code.

Chr(34) == "

1 Like

Okie. Much thanks :slight_smile:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.