in reply to Reguar expression
#!/usr/bin/perl $_ = "This is first sentence."; print "1st: match\n" if (/^This/ and /\.$/ and !/first/); $_ = "This is second sentence."; print "2nd: match\n" if (/^This/ and /\.$/ and !/first/);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Reguar expression
by citromatik (Curate) on Jun 22, 2009 at 10:45 UTC | |
|
Re^2: Reguar expression
by perliff (Monk) on Jun 22, 2009 at 10:45 UTC | |
by chomzee (Beadle) on Jun 22, 2009 at 12:21 UTC |