Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Regexps to change HTML tags/attributes

by Ovid (Cardinal)
on Aug 27, 2003 at 16:00 UTC ( [id://287074]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use HTML::TokeParser::Simple 2.1;
    my $parser   = HTML::TokeParser::Simple->new($html_file);
    ...
    open HTML, ">", $new_html_doc or die "Cannot open ($new_html_doc) for 
    +writing: $!";
    print HTML $html;
    close HTML;
    
  2. or download this
    # before <img SRC=foo.jpg   height='13' width=14   ALT="SOME alt Value
    +" />
    # after  <img src="foo.jpg" height="13" width="14" alt="SOME alt Value
    +" />
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://287074]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (None)
    As of 2024-04-25 01:31 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found