Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Match text from txt to html

by marto (Cardinal)
on Sep 04, 2019 at 14:17 UTC ( [id://11105599]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    
    # print to screen, do whatever you want with the results.
    print $dom->content;
    
  2. or download this
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    ...
    <p>This is sentence 1. This is sentence <span style="font-weight: norm
    +al">3</span> </p>
    </body>
    </html>
    
  3. or download this
    <p><sentence id=”1”>This is sentence 1></sentence></p>
    <p><sentence id=”2”>This is <font color="#000000"><font face="Century 
    +Gothic, serif">sentence 2</font></font></p></sentence>
    <p><sentence id=”3”>This is sentence 1. </sentence><sentence id=”4”>Th
    +is is sentence <span style="font-weight: normal">3</span></sentence><
    +/p>
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-04-20 01:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found