October 15, 2023 at 10:19 pm
How to replace all special characters in SQL input
System.Text.RegularExpressions.Regex.Replace(input, "\{\*?\\[^{}]+}|[{}]|\\\n?[A-Za-z]+\n?(?:-?\d+)?[ ]?", "")
October 16, 2023 at 10:08 am
What sort of input? A file?
October 16, 2023 at 3:29 pm
Input is Varchar(max) String column in Table.
I Need to replace all Special character in the input column with "".
(input, "\{\*?\\[^{}]+}|[{}]|\\\n?[A-Za-z]+\n?(?:-?\d+)?[ ]?", "")
October 16, 2023 at 4:19 pm
This function might help you: https://www.sqlservercentral.com/scripts/patexclude8k
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy