Posted By

jamarama on 09/22/08


Tagged

regex trim String


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

robe


Trim TAB/CR/LF/Space from string


 / Published in: PL/SQL
 

  1. SELECT REGEXP_REPLACE(
  2. 'string'
  3. , '^([[:space:]]|'||CHR(9)||'|'||CHR(10)||'|'||CHR(13)||')+|([[:space:]]|'||CHR(9)||'|'||CHR(10)||'|'||CHR(13)||')+$', '*') AS result
  4. FROM dual;

Report this snippet  

You need to login to post a comment.