G
Guest
Hi,
I need to replace double quotes inside the text from the database with " to
correctly display my text. I was trying to use Regex to perform such a task:
Regex.Replace(text, "[\x22\x93\x94]", """)
to catch standard " sign and non-standard “ and †- but non-standard double
quotes are not recognised by Replace function.
Can anyone suggest the correct expression to use (I was trying to avoid
multiple String.Replace functions that work fine - I need to make similar
substitution on a single quote Ascii codes 96, 145 & 146 - so I could only
look through a string twice instead of six times)
Any help is greatly appreciated.
I need to replace double quotes inside the text from the database with " to
correctly display my text. I was trying to use Regex to perform such a task:
Regex.Replace(text, "[\x22\x93\x94]", """)
to catch standard " sign and non-standard “ and †- but non-standard double
quotes are not recognised by Replace function.
Can anyone suggest the correct expression to use (I was trying to avoid
multiple String.Replace functions that work fine - I need to make similar
substitution on a single quote Ascii codes 96, 145 & 146 - so I could only
look through a string twice instead of six times)
Any help is greatly appreciated.