Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

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

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

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