Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Match text from txt to html

by marto (Archbishop)
on Sep 04, 2019 at 14:17 UTC ( #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
Node Status?
node history
Node Type: note [id://11105599]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2019-11-12 21:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (66 votes). Check out past polls.

    Notices?