I am trying to write a regex Replaces all 00 before and at the end of a string
"1203444" ---> Pass
"01212" ---> 1212
"12233434" ---> 12233434
"000000023234" ---> 23234
"34340000" -----> 3434
"00023300000" ----> 2333
Regex is kind of new to me.
"000123300".replace(/^0+/, ""); --> strips the first zeros
I tried numerous times to strip the last zeros to no avail. Any help would be appreciated.