in reply to Re: Re: Problem with regex from Learning Perl (3rd edition)
in thread Problem with regex from Learning Perl (3rd edition)
Hopefully I can break this down in a little better explaination.
Ok now lets break down what happens with your string "hello"you"
You regex is happy and matches all 4 of your rules
If you apply this to your other regex /^"([^x]*)"$/ you can see why your examples work
HTH|
grep> cd /pub grep> more beer |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Problem with regex from Learning Perl (3rd edition)
by slocate (Novice) on Mar 10, 2002 at 02:54 UTC |