Aravind Srinivas
Aravind Srinivas

Reputation: 633

How to Remove Double Quotes from a Particular part in a String?

If String contains lots of DoubleQuotes how to delete particular DoubleQuote using C#

Requirement :

Normal :

Update "3D Text 1" "Text="3D Text"","Weight=Normal","Italics=False","Name=Arial","Base Embedding=Left to Right","Size=50"

Output Will have to come like this

Update "3D Text 1" "Text=3D Text","Weight=Normal","Italics=False","Name=Arial","Base Embedding=Left to Right","Size=50"

Here I removed the Double Quotes in 3D Text; is it possible to do this programmatically? I dont want to remove all the DoubleQuotes.

Upvotes: 0

Views: 648

Answers (1)

Sprague
Sprague

Reputation: 1638

Without understanding the proper syntax rules for a well-formed string, it will be difficult to determine which quotes are desired and which aren't.

Perhaps you can move further up the process and remove the quotes before forming string?

Upvotes: 2

Related Questions