Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use strict; use warnings; open(F, "test.htm"); while(<F>) { my @a = ($_ =~ /(http:\/\/hosting.+\.rar)/g ); foreach(@a) { chomp; print "$_\n"; } } close(F);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Stumped Regular expressions
by moritz (Cardinal) on Jun 10, 2008 at 10:11 UTC | |
|
Re: Stumped Regular expressions
by psini (Deacon) on Jun 10, 2008 at 10:31 UTC | |
|
Re: Stumped Regular expressions
by Grey Fox (Chaplain) on Jun 10, 2008 at 20:28 UTC | |
|
Re: Stumped Regular expressions
by kabeldag (Hermit) on Jun 11, 2008 at 13:48 UTC | |
by toolic (Bishop) on Jun 11, 2008 at 16:34 UTC |