Godot Version
4.2.1
Question
I have a string and would like to remove a specific char from it, but I can’t be sure it is at the same index in all cases.
This is want I want to acomplish:
'0.1234' -> '01234'
From what I could find I should use .lstrip() to remove the ‘.’ , but it doesn’t seem to work.
sub_string = '0.1234'
sub_string = sub_string.lstrip('.')
print(sub_string)
#prints:
'0.1234'
What I’m I overlooking? Is this the wrong approach?