I think this should work, but you might investigate using the translate
function instead. I suspect it will provide much better performance than
using regexps. Also, Are you planning to do this once to create your final
tables? If so, the performance overhead won't matter much.
On Fri, Mar 1, 2013 at 10:52 AM, Tom Hall <[EMAIL PROTECTED]> wrote:
> I would like to remove unicode chars that are outside the Basic
> Multilingual Plane 
> I thought
> select regexp_replace(some_column,"[^\\u0000-\\uffff]","\ufffd") from
> would work but while the regexp does work the replacement str does not (I
> can paste in the literal �, which you may or may not be able to see here
> but it somehow did not fell right)
> I saw Deans previous post on using octals  but I think \ufffd is
> outside the allowable range.
*Dean Wampler, Ph.D.*