http://qs321.pair.com?node_id=11136558


in reply to Re^2: Regex to get file name from the path with spaces
in thread Regex to get file name from the path with spaces

Maybe you can think of your capture problem in a different way then. Most likely, you want everything after the last "path separator" up until the double quotes:

TEXT:\s+".*?[\\/]([^\\/"]+)"

The filename can contain everything except a path separator (\ or /) and double quotes, and must be followed by double quotes.