title: keeping data that regex expression parses
body: <p>I have a Regex pattern that matches data I need to parse exactly as I need it. Unfortunately with the split method it is deleting the desired data and passing the garbage out to me. Normally I would just try another Regex expression doing the opposite but its not quite as simple as it sounds. It must be in Java as this section is part of a much bigger program/package.</p>
  
  <blockquote>
    <p>Pattern p = Pattern.compile("/^\{\?|\:|\=|\||(\-
    configurationFile)|(isUsingRESTDescription)|(\restURL)<em>=(\s|\w|\.|\-|\:|\/|\;|\[|\]|\'|\})</em>\r/g");</p>
  </blockquote>
  
  <p>This is the string I'm parsing (there are carriage returns after each section):</p>
  
  <ul>
  <li>SearchResult::getBleh(): {BLEHID=BLEH blehLastmoddate=1-Jul-11 bleh=BLEH; Beh description=blehbleh BlEh=bleh1231bleh bLeH=bleh-blehbleh 1 media=<a href="http://bleh.com/13" rel="nofollow">http://bleh.com/13</a> Date=22-May-12 name=[]} String[] items = p.split(input^);</li>
  </ul>
  
  <p>The above gives me the opposite of what I want.</p>
  
  <p>You'd think someone would have had this problem. Help would be appreciated :).</p>