I'm back to trying to remove "T" from layer names in the Drawing Order.
I have 3 layers:
T123T
12T3
T123
This will remove all the T's:
layers = act_map.listLayers()
for lyr in layers:
if "T" in lyr.name:
lyr.name = lyr.name.replace("T", "")
How do I specify the first position in the string? so I'm left with:
123T
12T3
123