I did it 
PHP:<?php
$str = preg_replace("/(\[B\])(.+)(\[\/B\])/iUs","<b>\\2</b>",$str);
?>
P.S.U'll need to quote me to see the code
Login |
If you'd like to have BBcode on your shoutbox.If you'd like to have BBcode on your shoutbox.Currently viewing this thread: 1 (0 members and 1 guests) CONFIQStatus: Offline!
I did it
P.S.U'll need to quote me to see the code CONFIQStatus: Offline!
here is all code
LaneStatus: Offline!
how would i go about making a bbcode that highlights php syntax similar to what there is here... TrigBoyStatus: Offline!
xMattHawkxStatus: Offline!
Thanks for the excellent thread CDude! I've run into a small problem though - when using this code on a string that includes multiple instances of a tag, the expression retrieves everything inside the VERY first and VERY last tag, and works its way inward. Does anyone know how to fix this, so it goes one set of tags at a time? Thanks! ___________________ - Matt heres why
___________________ Neverside Development Director
Last edited by BigToach, January 22nd, 2003 10:44 PM (Edited 1 times) |
Copyright ©1999-2008 Neverside. All rights reserved.
Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach
NeverAPI generated this page in 0.0192 seconds.