My string looks like below:

```
Response: 311768560
311768562
311768564

```

I have tried:

```
$success_pattern="Response: ((\d+)[\n])*"; 
$response="Response: 311768560\n311768562\n311768564\n311768566";
preg_match("/$success_pattern/i", $response, $match);

```

Output:

```
Array ( 
    [0] => Response: 311768560 311768562 311768564
    [1] => 311768564
    [2] => 311768564
)

```

I need an array containing all the numbers as output like:

```
array('311768560','311768562','311768564');

```