Following Regexp_replace needs to be converted into Netezza Syntax:
regexp_replace(COLUMN_NAME,'([[:cntrl:]])|(^\t)|(\s+$)',null)
From what i understand,
cntrl replaces control characters
^\t replaces tabs
\s+$ replaces trailing spaces
Please help! Please also correct my understanding of what this current regex does in oracle.
You're almost right.
[:cntrl:]— matches control characters\t— matches tab^\tin between expressions — matches a^and tab character together[^\t]in between expressions — matches non-tab characters^\tat start — matches leading tab characters\s+$— matches text with trailing spacesEffectively, your expression will match - first control character, leading tab or trailing spaces.