Trim leading zeros

CAn anyone help me on

What ever the string I will get I have to remove the leading 0’s of the string and send the remaining string further you got it bayya?

Example: Input : 00000097983752 Output: 97983752

000000707 Output: 707

Thanks in advance!!!

Use addInts service in WmPublic. Add this value to zero and the leading zeros will be trimmed out.

Cheers
Guna

The above solution would work if you are not expecting alphanumeric characters. If you are expecting characters in your input i guess you would have to write a java service which checks for the leading zero and its trims it out.

you can use pub.string:replace service in WmPublic with searchString=^0*
replaceString="" and useRegex=true.

This will work for alphanumeric characters as well.

~Sukanta