>That would be a strange regexp, but I never suggested it. I suggested the >regexp /b.*?d/ and pointed out that I believe "bccccd" is a more intuitive >match than "bbbbccccd". That was the matching text, not the regexp, sorry >if I didn't make that clear. Fine. What you said is first find a b then find any non-newline, repeated 0 to N times then find a d What part of "first find a b" do you expect a randomizing solution to? That's very clear. --tom
- Re: Perl 5's "non-greedy"... Deven T. Corzine
- Re: Perl 5's "non-greedy&... brian d foy
- Re: Perl 5's "non-greedy"... Simon Cozens
- Re: Perl 5's "non-greedy&... Deven T. Corzine
- Re: Perl 5's "non-greedy&... brian d foy
- Re: Perl 5's "non-greedy" mat... Tom Christiansen
- Re: Perl 5's "non-greedy"... Deven T. Corzine
- Re: Perl 5's "non-greedy&... Tom Christiansen
- Re: Perl 5's "non-greedy&... Tom Christiansen
- Re: Perl 5's "non-greedy&... Deven T. Corzine
- Re: Perl 5's "non-greedy&... Tom Christiansen
- Re: Perl 5's "non-greedy&... Deven T. Corzine
- Re: Perl 5's "non-greedy&... Jarkko Hietaniemi
- Re: Perl 5's "non-greedy&... Tom Christiansen
- Re: Perl 5's "non-greedy&... Simon Cozens
- Re: Perl 5's "non-greedy&... brian d foy
- Re: Perl 5's "non-greedy" matching can be TOO ... James Mastros
- Re: Perl 5's "non-greedy" matching can be... Deven T. Corzine
- Re: Perl 5's "non-greedy" matching ca... Jarkko Hietaniemi
- Re: Perl 5's "non-greedy" matchin... Deven T. Corzine
- Re: Perl 5's "non-greedy" mat... Tom Christiansen