AndreasW: Aus einer Textdatei alle http: URL's rausfiltern....Wie mach ich das?

Beitrag lesen

Hallo Leute!

Ich bin noch ein kleiner Anfänger in Perl und brauche jetzt schon Hilfe! ;-)

Kann jedem mal passieren.

[...]

Best regards

Thomas

Hallo,
so mal aus dem Kopf heraus (ungetestet):

while (<>)
{
  if ($_ =~ m/.*(http:[^ \t]*).*/)
  {
    print $1;
  }
}

Andreas