codepad
[
create a new paste
]
login
|
about
Link:
http://codepad.org/pXQdiuak
[
raw code
|
output
|
fork
]
PHP
,
pasted on Feb 21:
1
2
3
4
<?php
$eq
=
"(21)*(4+2)"
;
echo
preg_replace
(
"/\((\d+)\)/"
,
"$1"
,
$eq
);
?>
Output:
1
21*(4+2)
Create a new paste based on this one
Comments: