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

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -