[ create a new paste ] login | about

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

PHP, pasted on Feb 21:
1
2
3
4
<?php
$eq = "((21)*(4+2)-(31)+20)/((30)+(22*9.25)";
echo preg_replace( "/\((\d+)\)/", "$1", $eq );
?>


Output:
1
(21*(4+2)-31+20)/(30+(22*9.25)


Create a new paste based on this one


Comments: