I have a string value in which i might have leading zero's, so i want to remove all leading zeros.
For example:
accNumber = "000340" ---> "340"
Any UDF is available in Hive? can we use regexp_extract
for this?
I have a string value in which i might have leading zero's, so i want to remove all leading zeros.
For example:
accNumber = "000340" ---> "340"
Any UDF is available in Hive? can we use regexp_extract
for this?
Yes, just use
REGEXP_REPLACE()
.(fixed simple typo with comma)