cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Removing leading zeroes using XPATH in Content Modifier

ZTK196
Explorer
0 Kudos
959

Hi, How to remove leading zeroes via XPATH expression in content modifier? Is it possible?

Example:

Field path in XML: //number

Input: 00001230, 00001203405, 0021330

Output: 1230, 1203405, 21330

Thanks for the help!

View Entire Topic
robertot4s
Contributor

Hi @ZTK196 ,

Too long to convert to number 😞

Then, try with a pattern for string: replace(//number, '^0+', '')

Regards,

Roberto

ZTK196
Explorer
Thanks a lot!