Since you don't define how your definitions look like - all
you do is give a simple example, I'll just assume that there
are word characters on both the left and right hand side of
the equal sign, and there are no other word characters in the
string.