sub is_all_in_bold {
my $title=shift;
my ($title_content)=$title=~m!
(.*?)!s;
1 while $title_content=~s#(?:[^<>]+|(?!?b>).)*##s;
print "$title_content\n";
return !$title_content;
}
while () {
print;
chomp;
next unless /\S/;
print is_all_in_bold($_) ? "Its all in bold\n" : "Its not all in bold\n";
}
__END__
Meta‐Ethics and The Problem of Creeping Minimalism
Meta‐Ethics and The Problem of Creeping Minimalism
foobar