Posted by
cal, 14:55, 24th April 2003:
you might want to check for a topic name existing, e.g.:
www.thegrahamsonline.co.uk/grimforum5/gr...
try something like this:
$topic_name = ($topic_name)?htmlentities($topic_name):'<i>no topic</i>';
Posted by
beargod, 15:01, 24th April 2003:
I was wondering about that
Posted by
Grim..., 16:48, 24th April 2003:
I had pretty much the same solution:
www.hsmx.com/gf5/topic.php?groupid=4&top...
Posted by
Grim..., 09:58, 25th April 2003:
Cal, if I use this:
$postthis = preg_replace("/(([\w\.]+))(@)([\w\.]+)\b/i","<a href=\"mailto:$0\">$0</a>",$postthis);
to parse email addresses, how do I make it not parse the email address if it has
mailto:
in front of it?
Preg_replace is stupid complicated =[
Posted by
cal, 19:02, 27th April 2003:
try something like this:
$postthis = preg_replace("/(^|[^:])((([\w\.]+))(@)([\w\.]+))\b/i","$1<a href=\"mailto:$2\">$2</a>",$postthis);
Posted by
Sul, 19:11, 27th April 2003:
My 1 year and half nephew wrote the exact same thing the other day while I had him on my lap. I thought he was stretching for my beer. Little did I know he was doing regexps. Kids are so bright these days. :)