in reply to Re: Reguar expression
in thread Reguar expression
$_ = "This is first sentence."; print "1st: match\n" if (/^This/i and /\.$/ and !/\bfirst\b/); $_ = "This is second sentence."; print "2nd: match\n" if (/^This/i and /\.$/ and !/\bfirst\b/);
perliff
-with perl on my side
"If you look at the code too long, the code also looks back at you"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Reguar expression
by chomzee (Beadle) on Jun 22, 2009 at 12:21 UTC |