/.*(?=(^[^=]+=|\Z))/ # not tested, but should be about right