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. "
- Re: OODL: OODL - Distributed Collaboration DeRobertis
- Re: OODL: OODL - Distributed Collaboration M. Uli Kusterer
- Re: OODL: OODL - Distributed Collaborat... DeRobertis
- Re: OODL: OODL - Distributed Colla... M. Uli Kusterer
- Re: OODL: OODL - Distributed C... DeRobertis
- Re: OODL: OODL - Distributed C... M. Uli Kusterer
- Re: OODL: OODL - Distributed Collaboration Richard Gaskin
- Re: OODL: OODL - Distributed Collaboration Michael Fair
- Re: OODL: OODL - Distributed Collaboration Michael Fair
- Re: OODL: OODL - Distributed Collaboration Scott Raney
- Re: OODL: OODL - Distributed Collaboration DeRobertis
- Re: OODL: OODL - Distributed Collaboration Scott Raney
- Re: OODL: OODL - Distributed Collaboration Michael Fair
- Re: OODL: OODL - Distributed Collaboration Julian blackhirst
- Re: OODL: OODL - Distributed Collaboration DeRobertis
- Re: OODL: OODL - Distributed Collaboration M. Uli Kusterer
- Re: OODL: OODL - Distributed Collaboration M. Uli Kusterer
- Re: OODL: OODL - Distributed Collaboration DeRobertis
- Re: OODL: OODL - Distributed Collaborat... M. Uli Kusterer
- Re: OODL: OODL - Distributed Colla... Dylan Just
- Re: OODL: OODL - Distributed C... spierings
