import java.util.*;
import java.lang.*;
import java.io.*;

class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		String s = "This should be captured \"not this\" and \"not \\\"this\\\" either\".";
		String[] res = s.split("\\s*\"[^\"\\\\]*(?:\\\\.[^\"\\\\]*)*\"\\s*");
		System.out.println(Arrays.toString(res));
	}
}