I have to clean up some varchar in the following manner:
Remove special characters such as:
!, @, #, $, %, ^, &, *, (, ), }, {, [, ], ",", ., ?, /, ',
from a closed list. I've managed to do so with a mass use of replace\regexp_replace but I'm looking for something similar to the one in SQL server.Remove following numbers but not adjacent ones meaning:
round 1 --> round
round1 --> round1
round 12345 --> round
round12345 --> round12345
Remove words out of a closed list of words such as: "and", "or", "Ltd.", "international" without substrings:
more food or drinks ---> more food drinks. and not --> me food or drinks
I'm working on a big table and I'd like to do it as efficient as possible.
Should I write a function that does that or is there a more elegant way?