in reply to Re: string matching
in thread string matching
We can match this requirement in single line.
Example:
Example:
use strict; use warnings; open(FH,"data"); foreach ( <FH>){ if ( $_ =~ m/^https.*[^\/]\n$/ ) { print $_; } }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: string matching
by Your Mother (Archbishop) on Feb 27, 2010 at 20:25 UTC |
In Section
Seekers of Perl Wisdom