I need some solution that I can print the result of the query `file_get_contents`, and it should be shown only what there is in parentheses.

See:

```
<?
$value = file_get_contents("url");
echo $value;
?>

```

The `echo` value is: **document.write('49,90');**

I need it to return only what appears in parentheses, that is, only the value, for each variable created.

I tried that, but he removed the comma as well.

```
preg_replace("/[^0-9]/", "",$value);

```

There will be several variables with different URLs. It would help if anyone knew how to simplify this too.

I accept suggestions for using methods other than `file_get_contents`.