Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Need help with Regex

Name: Anonymous 2011-08-29 0:48

Ok /prog/ im lost. Why does this script do not work? what im doing wrong!?

   $a = array(
      "/^\>(.*?)\n/im"
   );
   $b = array(
      "<b>$1</b>"
   );
   $text = preg_replace($a, $b, $text);

It should grab any line starting with ">" and bold them out. Funny thing is that it works if i change ">" with "\*"

Name: Anonymous 2011-08-29 5:15

more
test
heh

Name: Anonymous 2011-08-29 5:16

and some more
testing

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List