:
/[^ \\]*(?:\\ [^\\ ]*)*/
Friedl " ". , , , , . , , .
: (Tomalak) , , , . , , ( ) .
(Brad) OP , , . , , . :
/"[^\\"]*(?:\\.[^\\"]*)*"/
(Tomalak) I do not know what you mean when you say that it does not match the "file name at the beginning of the line." They seem to match the file names in the OP example. However, it also matches an empty string, which is not very good. This can be fixed, but if efficiency is not a problem, it is not worth the effort. Stefan's solution works great.
source
share