Help for this page

Select Code to Download


  1. or download this
    sub My_Regex
    {
    ...
        my $output = $1;
        print "OUTPUT: $output\n";
    }
    
  2. or download this
    sub My_Regex
    {
        my ( $raw_text, $tag ) = @_;
        return $raw_text =~ /<$tag>(.*?)<\/$tag>/s ? $1 : '';
    }