want to extract last number in a string

Tippireddy Venk
Tera Contributor

HI All,

I want to extract  numbers  from the  in  given string except KB please give me the expression in dynamic form

KB0014953.

1 ACCEPTED SOLUTION

Samaksh Wani
Giga Sage
Giga Sage

Hello @Tippireddy Venk 

 

Use the below script :-

 

var numb = "KB0014953";
var res = numb.substring(2);
gs.info(res);

 

Please mark my solution as Accept, if you find it helpful.

 

Regards,

Samaksh

View solution in original post

2 REPLIES 2

Samaksh Wani
Giga Sage
Giga Sage

Hello @Tippireddy Venk 

 

Use the below script :-

 

var numb = "KB0014953";
var res = numb.substring(2);
gs.info(res);

 

Please mark my solution as Accept, if you find it helpful.

 

Regards,

Samaksh

i want to store the data with out KB