title: Regex Group Multiple Lines
body: <p>I am trying to extract DB_NAME, DB_USER, DB_HOST, DB_PASSWORD from a WordPress file using regex. Is there a way to group each variable into its own group? </p>
  
  <pre><code>// ** MySQL settings - You can get this info from your web host ** //
  /** The name of the database for WordPress */
  define('DB_NAME', 'wordpress');
  
  /** MySQL database username */
  define('DB_USER', 'root');
  
  /** MySQL database password */
  define('DB_PASSWORD', 'stack');
  
  /** MySQL hostname */
  define('DB_HOST', 'localhost');
  
  /** Database Charset to use in creating database tables. */
  define('DB_CHARSET', 'utf8');
  
  /** The Database Collate type. Don't change this if in doubt. */
  define('DB_COLLATE', '');
  </code></pre>
  
  <p>Result should be grouped like this: wordpress, root, stack, localhost
  There should be 4 matches.</p>