in reply to Re: Re:{2} Getting impossible things right (behaviour of keys)
in thread Getting impossible things right (behaviour of keys)
Hmm.. from perlre:
Alternatives are tried from left to right, so the first alternative found for which the entire expression matches, is the one that is chosen. This means that alternatives are not necessarily greedy. For example: when matching `foo|foot' against "barefoot", only the "foo" part will match, as that is the first alternative tried, and it successfully matches the target string.
So that would take a string random with respect to length.
Jeroen
Update: I see. Can you explain that regex-feature?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re:{4} Getting impossible things right (behaviour of keys)
by blakem (Monsignor) on Oct 25, 2001 at 01:18 UTC | |
Re: Re:{4} Getting impossible things right (behaviour of keys)
by blakem (Monsignor) on Oct 24, 2001 at 21:39 UTC |
In Section
Seekers of Perl Wisdom