<p>I have a space delimited list of files names, where spaces in the file names are prefixed by '\'</p>

<p>e.g. "first\ file second\ file"</p>

<p>How can I get my regex to match each file name?</p>

```
```
(\\ |[^ ])+
```
```
Everything except spaces, except when they're escaped.  Should work, sorry for misunderstanding your question initially.