my $str = "This is a line # with comment Boss."; my $word = "#"; # define custom \b my $b = qr/(?:(?=\S)(?