From: "Peña, Botp" Date: 2006-07-07T20:09:22+09:00 Subject: Re: Regexp fr David: # Interesting -- it actually works only *because* of the newline :-) # With the newline, the .+ starts again on the second line (since . # doesn't match a newline). Without it, the greed of .+ consumes # everything up to the second <\math>. yes indeed. you're a great teacher. # So if it's really on two lines, the non-greedy .+ isn't needed. But # it's probably a good idea anyway, as it will work in a larger number # of cases. yes, why does it have to be greedy by default... or is that life? :) kind regards -botp