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

I was explaining why I added \S to the end. The naive solution, a FAQ here, is (.*)(somethingelse).
  • Comment on Re^4: Regex: not the trailing whitespace

Replies are listed 'Best First'.
Re^5: Regex: not the trailing whitespace
by ikegami (Patriarch) on Apr 23, 2011 at 08:01 UTC
    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.
        I have no idea where you're going with this. The lookbehind is useless because the others parts can't eat the trailing whitespace. I don't understand your objection.