[ create a new paste ] login | about

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

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


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


Create a new paste based on this one


Comments: