$str = preg_replace("!\*(.*?)\*!"," <strong>\\1</strong>\\2",$str);
it works fine on single lines, but it breaks when there's a \n (and perhaps other white spaces?) in the string, eg:
*something with a newline*
I think this is because .*? doesn't include newlines... can anyopne help me modify the above to work on multiple lines????
Thanks!
Justin
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php