Quantcast
Channel: SCN : All Content - Data Services and Data Quality
Viewing all articles
Browse latest Browse all 4013

Use of function "regex_replace"

$
0
0

Hello everybody,

 

I've been looking at the "SAP_BODS_42_Tech_Manuals.pdf" but I can't find any explanation about the built-in function "regex_replace", which seems to be is the equivalent to "REGEXP_REPLACE" in Oracle.

 

In the own SAP BODS, the wizard gives you a short explanation of the function and each parameter but I would like to know some more details.

 

First of all, I would like to know the Flags you have available to use.

 

Also, I would like to perform something like (where PALABRA_IN = 'HELLO COOL WORLD'):

 

  • REGEXP_REPLACE(PALABRA_IN, '^([A-Z]+) ([A-Z]+) ([A-Z]+)$', '\2'); --> 'COOL'

 

So, therefore, being able to get the part of the input string I want according to the regular expression I use, in this case the second word.

 

I've tried with "\2" and "$2" but any of them work and it's not clarified in the documentation.

 

I would like to know as well if there is a equivalent built-in function for the Oracle one "REGEXP_SUBSTR".

 

Thanks and regards


Viewing all articles
Browse latest Browse all 4013

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>