[ create a new paste ] login | about

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

PHP, pasted on Feb 4:
1
2
3
4
5
<?php
$your_string = '($com_mit$ + $Bug$)/$HR$*($Leader$^$IT$)';
$output= preg_replace('/(\$\w*\$)+/i', '1', $your_string);
echo $output;
?>


Output:
1
(1 + 1)/1*(1^1)


Create a new paste based on this one


Comments: