I have a space delimited list of files names, where spaces in the file names are prefixed by \'\\\'
e.g. \"first\\ file second\\ file\"
How can I get my rege
(\\ |[^ ])+
Everything except spaces, except when they're escaped. Should work, sorry for misunderstanding your question initially.