Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

regexp_replace in oracle

TinaJun 28 2019 — edited Jun 28 2019

Hi Gurus,

    I am new to regexp and trying to understand the condition here.

    Does this expression replace anything that is not a number (0-9) and some characters  .,\,- (associated with amounts) with null ?

    I see this expression on some code , basically to clean the garbage, however still trying to understand what it does.

    select REGEXP_REPLACE(value , '[^0-9.\-]+', '')) from my_table;

   If  this expression replaces or lets ignore possible alphanumeric or signs associated with amount, how can we extract the fields that is other than number, +,. and \ ?

Thanks

This post has been answered by Mustafa KALAYCI on Jun 28 2019
Jump to Answer
Comments
Post Details
Added on Jun 28 2019
4 comments
3,286 views