http://qs321.pair.com?node_id=390081


in reply to Re: On zero-width negative lookahead assertions
in thread On zero-width negative lookahead assertions

@ and . must be backslashed

Backslashed: still matches too much

your \s* allows the regexp to match when \s* matches empty string

I know it, I expressely want to match 0 or more spaces before line end

Ciao!
--bronto


In theory, there is no difference between theory and practice. In practice, there is.