Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Thx
How do you read a string and convert into DUAL + STRING and also remove leading zeros.
String:
AIOU002343443
000000URREI34343438
Hi,
Include more sample data to better understand the patterns and to come up with logic/functions that will help you.
BR,
Vijay
What would be the expected output in the above sample data?
Please share sample file with expected output.
May be this?
=Dual(<YourString>, Replace(Ltrim(Replace(Keepchar(<YourString>,'1234567890'),'0',' ')), ' ','0'))
Perhaps this:
Dual(
Replace(LTrim(Replace(field, '0', ' ')), ' ', '0'),
Num(KeepChar(field, '0123456789'))
)
The Replace() will strip the lading zeroes from the text part and the Num() will strip the leading zeroes from the numerical portion.