Quantcast
Channel: SCN : Discussion List - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 5653

REPLACE_REGEXPR function in Hana

$
0
0

Hello Experts,

 

Below is the logic for regexp_replace from source DB.

 

Can you please help how to achieve this in Hana Scipt.

 

   regexp_replace(field1,'^[^|]*\|([^|]*).*$','\1')   as channel_1,

   regexp_replace(field1,'^([^|]*\|){2}([^|]*).*$','\2')  as num_channel_1,

 

sample data format for field1 as below

123123|444|555|6666|77|88

 

 

Thanks,

Kris


Viewing all articles
Browse latest Browse all 5653

Trending Articles



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