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 9:11

>>10,11

> But can you
test this

> or this, even
I bet you can't!


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