I\'m trying to parse strings that represent source code, something like this: [code lang=\"html\"] <div>stuff</div>
I\'m developing a web application to facilitate the playing of pen-and-paper RPG开发者_StackOverflow社区s over the internet.I\'m trying to determine whether BBCode or some flavor of wiki markup is pre
I\'ve got a number of bbcode tags that have phpbb attributes (5 digit value - assuming text color or something).They look like this in the text:
For some reasons I got the following improperly nested BBcode [url=] Hello [url=] world [/url][/url] I just want to remove the nested url tags. The result should be:
im using this rte in bbcode format. http://markitup.jaysalvat.com/home/ once the textarea is submitt开发者_高级运维ed i\'m saving it with bbcode format.
i have some simple code public virtual ActionResult Get(int id) { using (var db = new ImagesEntities()) {
Trying to add more functionality to my gaming site that\'s running Invision Power Board software. It co开发者_开发问答mes with the ability to add custom BBcode, and I\'m trying to make a tag that can
I have a simple question (not for me), ok, at first, please take a look at this: $msg=preg_replace(\"/\\[b(.*?)\\](.*?)\\[\\/b\\]/i\", \"<b $1>$2</b>\", $msg);
I need help with this preg_match script. I want to have a text that is inside a bbcode. So this would be the string: [caption id=\"attachment_123\" align=\"alignleft\" width=\"100\" caption=\"This is
It\'s easy to explain what I want to achieve, but for me (a novice at PHP), hard to actually achieve it. Basically what I want is to make BBCodes as easily and short as possible. Instead of an array l