J
JS
Is it possible to do multiple replaces in a string?
Example: I'm trying to replace all of the spaces with "%20" and "#" with
"%23", etc. I also need to replace the "?", "!", " ' ", etc.
I know I can do this with:
thisString.Replace(" ", "%20")
thisString.Replace("#", "%23")
But, I'm trying to find a way to do this one line of code.
Any Ideas?
TIA
JS
Example: I'm trying to replace all of the spaces with "%20" and "#" with
"%23", etc. I also need to replace the "?", "!", " ' ", etc.
I know I can do this with:
thisString.Replace(" ", "%20")
thisString.Replace("#", "%23")
But, I'm trying to find a way to do this one line of code.
Any Ideas?
TIA
JS