in reply to Converting to html tags...
But for a general case, if one even exists, I would use:$text =~ s/\[(b|glow)\]/<$1>/g;
But this is more dangerous, as those square brackets are in my opinion likely to occur in text.$text =~ s/\[([^\]]+)\]/<$1>/g;
|
|---|