I am trying to read out the server names from a nginx config file.

I need to use regex on a line like this: 

server\_name this.com www.this.com someother-example.com;

I am using PHP's `preg_match_all()` and I've tried different things so far:

```
/^(?:server_name[\s]*)(?:(.*)(?:\s*))*;$/m
// no output

/^(?:server_name[\s]*)((?:(?:.*)(?:\s*))*);$/m
//  this.com www.this.com someother-example.com

```

But I can't find the right one to list the domains as separate values. 

```
[  
    0 => 'this.com',  
    1 => 'www.this.com',  
    2 => 'someother-example.com'  
]

```