my $p_token = Regexp::Token::HTML->create_token('

'); my $p_tag = Regexp::Token->create($p_token); $html = <testing

end test

END_HTML my ($result) = $html =~ /((?:$p_tag )+)/; my $two_tags = q{

}; is($result, $two_tags, '... and we should be able to capture token text');