title: Regex: Match White Space & New Lines Until Specific Character
body: <p>I'm trying to write a macro for Textmate to take a few lines of code and turn them into one css line. So: </p>
  
  <pre><code>#rules #footer ul { margin: 0 auto;
  text-align: colorenter;
  width: 700px;}
  </code></pre>
  
  <p>would become </p>
  
  <pre><code>#rules #footer ul { margin: 0 auto;text-align: colorenter;width: 700px;}
  </code></pre>
  
  <p>so basically I need to match new lines and white space and turn them into just a single space UNTIL it hits <code>}</code> that's where it ends. I don't want to go over the entire css file just the one block.</p>
  
  <p>I'm really bad at regex any help would be GREATLY appreciated...</p>