title: Java Regex match between string and a space
body: <p>I have the following string in Java.</p>
  
  <p><code>ActivityRecord{7615a77 u0 com.example.grano.example_project/.MainActivity t20}</code></p>
  
  <p>My need is to get the string <code>MainActivity</code>, ie the part between the <code>./</code> and the space after the word.</p>
  
  <p>So basically I'm looking for a regular expression able to catch something in the middle of given characters and a white space.</p>