--- /Users/Albright/Sites/dividential/sites/default/modules/zenophile/zenophile.module copy	2009-08-10 16:17:03.000000000 -0700
+++ /Users/Albright/Sites/dividential/sites/default/modules/zenophile/zenophile.module	2009-08-11 09:05:35.000000000 -0700
@@ -247,13 +247,13 @@ function zenophile_create_submit($form, 
   // Load the info file into a string.
   $info = file_get_contents("{$parent_dir}/{$parent_info}");
   // Reset the \$Id\$ string
-  $info = preg_replace('/^; \$Id.*\$$/m', '; \$Id\$', $info, 1);
+  $info = preg_replace('/(*ANYCRLF)^; \$Id.*\$$/m', '; \$Id\$', $info, 1);
   // Build replacement arrays. We definitely want to replace the name and
   // description.
   $from = array(
     "/{$form_state['values']['parent']}/",
-    '/^name\s*=.*/m',
-    '/^description\s*=.*/m',
+    '/(*ANYCRLF)^name\s*=.*/m',
+    '/(*ANYCRLF)^description\s*=.*/m',
   );
   $to = array(
     $form_state['values']['sysname'],
@@ -263,7 +263,7 @@ function zenophile_create_submit($form, 
   
   // Do we also want to add the fresh stylesheet?
   if ($form_state['values']['fresh']) {
-    $from[] = '/^stylesheets\[all\]\[\]\s*=\s*zen\.css$/m';
+    $from[] = '/(*ANYCRLF)^stylesheets\[all\]\[\]\s*=\s*zen\.css$/m';
     $to[] = "stylesheets[all][]   = zen.css\n\n  ; Specifying a nice clean stylesheet\nstylesheets[all][] = {$form_state['values']['sysname']}-fresh.css";
     // Make the blank stylesheet file
     touch($path_part . '-fresh.css');
@@ -560,7 +560,7 @@ END;
     // Write the CSS file
     file_put_contents($dir . '/sidebars.css', $sidebars);
     // Add replacement for .info file
-    $from[] = '/^stylesheets\[all\]\[\]\s*=\s*zen\.css$/m';
+    $from[] = '/(*ANYCRLF)^stylesheets\[all\]\[\]\s*=\s*zen\.css$/m';
     $to[] = "stylesheets[all][]  = zen.css\n  ; Customized sidebar/content widths and positions\nstylesheets[all][]    = sidebars.css";
   }
   // Do replacement and write the info file
