Skip to Content
author's profile photo Former Member
Former Member

Mapping logic

Hi All,

My requirement is Input field will have value as A1,A2,A3,.... A200, Output must be in 10 digits A0000000001. Zero's should be added after the character A and before the numeric value.


A78 -->A0000000078

A102 --> A0000000102

I tried with node functions, but it is not working. Pls give me some idea to achieve this.


Jeevitha N

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Jul 28, 2016 at 08:19 AM

    Hi Jeevitha,

    String digits = input.substring(1,len);

    return digits;

    Capture.JPG (21.6 kB)
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.