🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: pl.comp.lang.perl
2 messages
2 total messages Started by Sebastian Lukasiewicz Thu, 12 Jun 1997 07:55
Perl i tagi HTML
#371
Author: Sebastian Lukasiewicz
Date: Thu, 12 Jun 1997 07:55
29 lines
1230 bytes
Czesc

Mam klopot z rozbiciem tekstu w ktorym wystepuja tagi HTML

I. Sytuacja

<title> Jakis tytul </title>";

II. Sutuacja

<title>
Jakis tytul
</title>


Potrzebny mi jest kawalek programu ktory bedzie zwracal "Jakis tytul".
Zwracam uwage na to ze w sytuacji II tekst jest w 3 liniach.

Pozdrawiam

---
 _______       _______
(    _  \     (    _  \                           ==[ E-mail ]==
 )  ( \  \     )  ( \  \ ____ ______           d0roc@atos.is.com.pl 
 |  |  \  \ __ |  |  \  \__  \  __  )           ==[ Home  page ]==
 |  |  /  /(  )|  (__/  /  )  )(  \/       http://atos.is.com.pl/~d0roc
 |  (_/  /  \/ |   _   /|  |  ||
 )   ___/      )  ( )  \(__)  )(__/\
(___)         (___) (___)____/______)
Re: Perl i tagi HTML
#372
Author: Piotr Piatkowski
Date: Thu, 12 Jun 1997 12:44
15 lines
1045 bytes
Sebastian Lukasiewicz <d0roc@atos.is.com.pl> wrote:

: <title> Jakis tytul </title>";

: <title>
: Jakis tytul
: </title>

: Potrzebny mi jest kawalek programu ktory bedzie zwracal "Jakis tytul".
: Zwracam uwage na to ze w sytuacji II tekst jest w 3 liniach.

( $title ) = ( $text =~ m!<title>[\s\n]*(.?*)[\s\n]*</title>! );

-- 
Piotr Piątkowski, Uczelniane Centrum Informatyki, AGH Krakow, POLAND
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads