$_ = "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"
In reply to Re^2: Reguar expression
by perliff
in thread Reguar expression
by selva
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |