Closed lethosor closed 10 years ago
[#f00|this is red]
[@blue|[#red|red on blue background]]
/\[([@#])([^|]+)\|([^]]+)]/
[$1$2]$3[$1]
[#f00|this is red]
[@blue|[#red|red on blue background]]
/\[([@#])([^|]+)\|([^]]+)]/
to[$1$2]$3[$1]
, if nesting is not important. However, a stack of some kind might be necessary if nesting is important.