title: Regex match single word
body: <p>Waht is the java regex to match only "pkgName" from string:</p>
  
  <pre><code>"name=pkgname -path=some.apk -minutes=120"
  </code></pre>
  
  <p>I have tried:</p>
  
  <pre><code>public static final Pattern PKG_NAME_REGEX = Pattern.compile("(name=)(\\b.+\\b)\\s");
  </code></pre>
  
  <p>buit group 2 of Match gives me:  "pkgname -path=some.apk -minutes=120"</p>
  
  <p>thanks</p>