in reply to Re: regex in html + from ... to
in thread regex in html

The Camel 2nd Ed. States that the range operator is two dots '..' not three.

?

Replies are listed 'Best First'.
Re: Re: Re: regex in html + from ... to
by davorg (Chancellor) on May 04, 2001 at 17:28 UTC

    It can be both .. and .... They have subtly different effects.

    With two dots, it's possible for both the start and end checks to be true on the same line. This means that the operator goes from false to true and back to false again on one evaluation. With three dots, if the start check is true, then the end check isn't checked until the next evaluation - thus forcing at least one iteration with the operator returning true.

    --
    <http://www.dave.org.uk>

    "Perl makes the fun jobs fun
    and the boring jobs bearable" - me