[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

[Perl] regexp til variabel



Jeg har en html-fil hvor jeg skal have hevet et antal tekststrenge over i hver deres variabel.

Hvordan laver jeg et udtryk der klipper den tekst der er mellem to regulære udtryk ind i en variabel?

f.eks.

<h3 class="fortit"><a class="lnk" href="/vis.php?base=dfa&amp;field1=lfc&amp;term1=Shute%20Nevil">Shute, Nevil</a><br>A town like Alice</h3>

I følgende linie skal jeg bruge "Shute, Nevil" i en variabel og "A town like Alice" i en anden variabel.

Og et lille sidespørgsmål, er der en funktion der kan fjerne de første x antal linier ud af en fil?

/Magnus
--
The flaw in your argument is that you think you're right.


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2006-11-01, 02:01 CET [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *