Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8807

Re: Want to capture the part of the string.

$
0
0

Hi,

 

I presume as per your original posting that, you want to extract TZ-Comviva-SUFW-172.27.55.166 from File(mor_cdr) monitor on SUFW03(TZ-Comviva-SUFW-172.27.55.166):NORMAL.

 

And I see that I am getting the extracted string value if I use the formula content I had provided earlier.

 

Let me explain further on the steps:

1. I created a formula with content as below (say formula name is string_val)

"SUFW03(TZ-Comviva-SUFW-172.27.55.166):NORMAL"

2. I created another formula (say required_val) with below content:

 

stringVar temp:= @string_val; //@string_val contains the string value as in step 1.

stringVar temp1 := StrReverse(temp);

stringVar temp2:= mid(temp1, instr(temp1, ')')+1);

 

strReverse(left(temp2, instr(temp2,'(')-1))

 

3. I see that I am getting TZ-Comviva-SUFW-172.27.55.166 as output from required_val formula which is created in step 2.

 

Can you post what you are getting from the formula with content created in step 2?


Thanks,

Raghavendra


Viewing all articles
Browse latest Browse all 8807

Trending Articles



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