How can I use the character "as delimiter in the Split method in Visual Basic?
I have to put in a variable the name of a user who comes in quotes, how can I get it without quotes?
How can I use the character "as delimiter in the Split method in Visual Basic?
I have to put in a variable the name of a user who comes in quotes, how can I get it without quotes?
Hello,
use “” instead of " as delimiter.
Thanks,
Sunil
Hi.
You could just use Replace() to remove the quotes
variable.Replace("""","")
also note you can replace all special characters like one of these methods:
String.Concat(variable.Where(AddressOf Char.IsLetterOrDigit))
System.Text.RegularExpressions.Regex.Replace(variable, "[^\w\d]+", "")
Regards.
Thank you very much, I have achieved it using variable.Replace (“” “”, “”)
I used Replace and 4 quotes marks thank you!!!
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.