Note Submitter: tbrisbane at hotmail dot nospammyspam dot com
----
It should be noted that rothenbergxxx at gmail dot com's regex will only work for single line $innertext. While this is perfectly fine for the majority of the tags, quote tags need multi-line $innertext.
Here is a fixed version of the regex which supports multi-line $innertext between the opening and closing tags:
preg_match_all('`\[(.+?)=?(.*?)\]([\s\S]+?)\[/\1\]`', $string, $matches)
In my tests, this performs without error. Feel free to post any additional corrections.
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.