An elegant solution that was given to me for a similar problem was to first REVERSE the string. {
Re: how to find what's not there with a regex? in
how to find what's not there with a regex?} There is always only one token before the '=', so it is much easier to parse "everything up to the '='" and then "one token after the '='". Then, reverse again.