Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Removing text between HTML tags

by Laurent_R (Canon)
on Sep 14, 2014 at 21:44 UTC ( [id://1100542]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      DB<1> $html = qq( <td class="body3" valign="top"><p style="margin-to
    +p:1ex; margin-bottom:1ex;">The purpose of this study is to compare tw
    +o types of care - standard <span class="hit_org">oncology</span> care
    + and standard <span class="hit_org">oncology</span> care with early p
    +alliative care (started soon after diagnosis) to see which is better 
    +for improving the experience of patients and families with advanced l
    +ung and non-colorectal GI cancer.  The study will use questionnaires 
    +to measure patients' and caregivers' quality of life, mood, coping an
    +d understanding of their illness.</p></td>)
    
    ...
     
      DB<3> print $html
     The purpose of this study is to compare two types of care - standard 
    +oncology care and standard oncology care with early palliative care (
    +started soon after diagnosis) to see which is better for improving th
    +e experience of patients and families with advanced lung and non-colo
    +rectal GI cancer.  The study will use questionnaires to measure patie
    +nts' and caregivers' quality of life, mood, coping and understanding 
    +of their illness.
    
  2. or download this
    $html =~ s/<[^>]+>//g;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2024-03-29 07:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found