Darius
asked on
xslt 1.0 - Formatting string (Removing characters 'BX' from string)
Hi guys,
Can you please assist with function below.
I need to handle two scenarios.
To remove characters 'BX' and replace with two preceding zero’s if zero after 'BX' exist.
example:
BX0000000005100368 - mapped to - 000000000005100368
And if zeroes not exist, remove 'BX' only.
example:
BXG1563300110901 - mapped to - G1563300110901
thank you,
Darius
Can you please assist with function below.
I need to handle two scenarios.
To remove characters 'BX' and replace with two preceding zero’s if zero after 'BX' exist.
example:
BX0000000005100368 - mapped to - 000000000005100368
And if zeroes not exist, remove 'BX' only.
example:
BXG1563300110901 - mapped to - G1563300110901
<xsl:value-of select="concat('00', substring-after($string, 'BX'))"/>
thank you,
Darius
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You are welcome
ASKER
Thank you zs2!