I am using ArcGIS Pro 3.0.1 and Arcade.
I have a text field named RouteName with an example value of "xyz_0045KM" and I need to do three things to its values:
- left strip the leading zeroes from the number part;
- remove the underscore and anything left of that; and
- make the "KM" part lowercase.
I can do the 2nd and 3rd parts using the code below but is there a way to remove (left strip) any leading zeroes before the number part using Arcade?
var arrName = split($feature.RouteName,"_")
return Lower(arrName[1])
Unfortunately, I cannot just switch to using the Python Parser because I am using this with Attribute-driven symbology—ArcGIS Pro | Documentation as part of labeling measured hatches along lines.