Forum Discussion
avidCoder
8 years agoSuper Contributor
You get the property value of this :- ${InternalOrderNumber Property Transfer#InternalOrderNumber}
And store to String and apply any of the below approach:-
1. Using java/groovy regex
String s = "000004DR"
String fvalue = s.replaceFirst("^0*", "")
log.info fvalue
//It will pint like this:-
Fri Mar 09 11:46:06 IST 2018:INFO:4DR2. Using StringUtils class of apache
//For this you need to import
import org.apache.commons.lang3.StringUtils
String fvalue = StringUtils.stripStart("000004DR","0")
log.info fvalue
//it will also print like this:-
Fri Mar 09 11:47:36 IST 2018:INFO:4DRHope, This helps you out.