MyBB Community Forums

Full Version: Deck Code - multiple regex match - help needed
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey guys I want a MyCode that matches all Cards listed in a DeckCode and links to them.
[deck]Card 1
Card 2
Card 3
...
[/deck]

And I want the regex to set a link for every card like
<a href=http://foo/?bar=Card 1>Card 1</a>
<a href=http://foo/?bar=Card 1>Card 2</a>
<a href=http://foo/?bar=Card 1>Card 3</a>
<a href=http://foo/?bar=Card 1>Card 4</a>
...
BlackLotus