sed not removing leading zeroes

I have th following file

 
0000000011
0000000001
0000000231
0000000001
0000000022
 

noow when i run the following command

 
sed  's/^0+//g' file name
 

I receive the same output and the leading zeroes are not removed from the file . Please let me know how to achieve this and also the reson for which the above command is not working

sed 's/^0*//' file

Well, the reason the command doesn't work is because POSIX recognizes just two regex flavors - BREs (Basic Regular Expressions) and EREs (Extended Regular Expressions), and POSIX programs support one flavor or the other.
sed supports BREs. The quantifiers "+" and "?" are metacharacters of EREs, and hence they are not supported by sed.

HTH,
tyler_durden

$ sed '/0//g' filename

should do it in this case.

But this will remove all occurence of 0's in the line, not the leading.