in reply to Converting to html tags...
while (<FILE>) { s/\[b\]/<b>/g; s|\[/b\]|</b>|g; # etc. ... } [download]
-Mark