[ create a new paste ] login | about

Link: http://codepad.org/JzA17sKN    [ raw code | output | fork ]

PHP, pasted on Nov 14:
1
2
3
4
<?php
$result = preg_replace("#[0]+(?=[1-9])#", "", "100010");
echo $result;
?>


Output:
1
110


Create a new paste based on this one


Comments: