in reply to Re: Problem with regex from Learning Perl (3rd edition)
in thread Problem with regex from Learning Perl (3rd edition)
#!/usr/bin/perl -w while (<>) { chomp; if (/"([^"]*)"/) { print "Matched: |<$&>|\n"; } else { print "No Match.\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Problem with regex from Learning Perl (3rd edition)
by Juerd (Abbot) on Mar 08, 2002 at 09:47 UTC |