Hi i am trying to parse some homemade bbcode i came up with and having a difficult time with something. I am new to regex but thought this would be a great way to teach myself.
I have a bbcode parser that turns, [img]imageurl[/img] bbcodes into, <img src=\"imageurl\" alt=\"\" />
Made some BBcode for phpBB to allow users to post flickr pics with certain tags. Each photo div in the thread needs to be unique, and the images load when the thread is loaded.
Say I have a document like: [b]blah[/b] [img]Thisismyimage.png[/img] How can I make it so that I completely remove all of the BBcode tags. An开发者_如何学Pythond also remove all the text from bet
Bbcode question. This开发者_开发百科: $text = preg_replace(\"@\\[img\\](.*)\\[\\/img\\]@si\", \"<img src=\\\"$1\\\" border=\\\"0\\\" />\", $text);
Closed. 开发者_JAVA百科This question is seeking recommendations for books, tools, software libraries, and more. It does not meet Stack Overflow guidelines guidelines. It is not currently accepting ans
i am using tinymce with the bbcodes-plugin. In generally, its working nicely, most of the bbcodes like [b] and [color] and so forth are transmitted into html within the textarea and safed as bbcodes i
I\'m currently developing a game using PHP and MySql. I\'d like to allow users to be able to show images using a BBCode parser (NBBC) but i\'ve b开发者_Go百科een made aware of a potential security pro
How can I create a hyper link from following string. [url =http://go开发者_JAVA百科ogle.com] Google [/url]
Just stitched up a little callback to highlight all my BBCodes. Took my ages because regex are still a huge pain in the butt to me.