c# - How to remove all zeros from string's beginning? -


i have string beginning zeros:

string s = "000045zxxcc648700"; 

how can remove them string like:

string s = "45zxxcc648700"; 

i use trimstart

string no_start_zeros = s.trimstart('0'); 

Comments

Popular posts from this blog

php - How to build a web site which gives a sub-domain dynamically to every registered user? -

Delphi Wmi Query on a Remote Machine -