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