in reply to automagic-HTML regex

Couldn't resist a little TIMTOWTDI now that the problem has been solved. ;)
use CGI::Pretty qw(ol li); my $string = "yadda\n[yadda\nyadda]yadda\n"; $string =~ s/\[\s*([^\]]+)\]/ol li[split "\n+",$1]/eg;

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)