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?
The absence of evidence is not evidence of absence
- Martin Rees
The absence of consumable DDL, sample data and desired results is, however, evidence of the absence of my response
- Phil Parkin
October 16, 2023 at 10:37 am
This was removed by the editor as SPAM
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
The absence of evidence is not evidence of absence
- Martin Rees
The absence of consumable DDL, sample data and desired results is, however, evidence of the absence of my response
- Phil Parkin
October 18, 2023 at 6:07 am
This was removed by the editor as SPAM
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply