MyBB Community Forums

Full Version: Attempting to create shortened markup
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So far I have had no issues with creating custom markup codes, such as getting video=youtube to just yt, but what I can't seem to get to work is one for quotes. My goal is to shorten {quote} to {q}. Here is what I'm trying to do:

Regular expression:

\[q\](.*?)\[/q\]

Replacement:

[quote]$1[/quote]
Going to bump this, in case anyone might have an answer.