in reply to Re^2: Regex: not the trailing whitespace
in thread Regex: not the trailing whitespace

No, I mean the (.*) would.

There is no /(.*)/ in your code. If you mean the /(.*\S)/, it can't eat the trailing whitespace either.

Replies are listed 'Best First'.
Re^4: Regex: not the trailing whitespace
by John M. Dlugosz (Monsignor) on Apr 23, 2011 at 07:56 UTC
    I was explaining why I added \S to the end. The naive solution, a FAQ here, is (.*)(somethingelse).
      You said you were explaining why you added the look-behind ("look-back") assertion. If that's your explanation for \S, what's your explanation for the look-behind assertion?
        My explanation of the final form I posted was imprecise. I was summarizing the whole experiment, and didn't proof as for publication quality.