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 |
In reply to Re: Re: Re: Problem with regex from Learning Perl (3rd edition)
by grep
in thread Problem with regex from Learning Perl (3rd edition)
by slocate
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |