/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;
import java.util.regex.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Matcher testMatcher = Pattern.compile("(.+?)\\s+a", Pattern.DOTALL | Pattern.UNICODE_CHARACTER_CLASS).matcher("some other text \u0085 a"); 
		System.out.println(testMatcher.find());
		System.out.println("'some other text \u0085" + "' = '" + testMatcher.group(1) + "'");
		
	}
}