At 11:40 AM -0600 on 5/27/99, Scott Raney wrote:

>I understand the problem (I think it's called "greedy matching"), but
>since all other regex patterns work the same way, I'm puzzled as to
>why you think it's a problem in MetaCard but not in
>Perl/Python/Tcl/etc?  How do you get short matches in any of these
>other languages?

Scott, you ought to read the perl regexp manpage :_

Anyay, given the string:

        "Hello. This is a test. This is not a real string."

/He(.*)This/

will match .* to "llo. This is a test. "

but

/*He(.*?)This/

will match .* to "llo. "

Reply via email to