I have a table where I have some raw data. My requirement is to trim any leading or trailing spaces and operator characters in the given string column. Examples of operator characters include + - . > < = : ;"
Examples:
Value +Payment
should be trimmed to Payment
Value ->300 Write
should be trimmed to 300 Write
Try with PATINDEX
You can try this:
The result
You can add any allowed character to the pattern...
What version are you on. Trim will do characters on 2017 version.
Trim