Help for this page

Select Code to Download


  1. or download this
    my $regex = qr{href\s*=\s*".*?"};
    
  2. or download this
    use strict;
    use warnings; # this is also useful
    ...
    __DATA__
    afjalsdfj href="asfasdfa" afdsas href="akjshfakjsd"
    href = "ajsfhaklj"
    
  3. or download this
    use strict;
    use warnings;
    ...
    <a href="foo" class="class">link</a>
    <p>some <a href="link">text</a> and <a href="another_link">more</a>
    </body></html>