title: Ignore strings after character if character found
body: <p>I need to have regex which finds the child and parent. For example:</p>
  
  <blockquote>
    <p>-->2014-05-21 22:05:23.092 INFO  [Core] org.jboss.modules.ModuleClassLoader@692578be parents: sun.misc.Launcher$AppClassLoader@62c8aeb3, sun.misc.Launcher$ExtClassLoader@65459c6f</p>
  </blockquote>
  
  <p>The child is <code>org.jboss.modules.ModuleClassLoader@692578be</code> and its parent is <code>sun.misc.Launcher$AppClassLoader@62c8aeb3</code>. The later string after <code>,</code> is ignored.</p>
  
  <blockquote>
    <p>-->2014-05-21 22:04:34.118 INFO  [Core] sun.misc.Launcher$AppClassLoader@62c8aeb3 parent:
    sun.misc.Launcher$ExtClassLoader@65459c6f</p>
  </blockquote>
  
  <p>In above the child is <code>sun.misc.Launcher$AppClassLoader@62c8aeb3</code> and the parent is <code>sun.misc.Launcher$ExtClassLoader@65459c6f</code></p>
  
  <p>I have this regular expression <code>.* (.*) parents?: (.*),?.*</code>. It works with the second example. But for the first one outputs parent as:</p>
  
  <blockquote>
    <p>sun.misc.Launcher$AppClassLoader@62c8aeb3,
    sun.misc.Launcher$ExtClassLoader@65459c6f</p>
  </blockquote>
  
  <p>but instead it should: <code>sun.misc.Launcher$AppClassLoader@62c8aeb3</code></p>