here:
// matches "test=, test"
(\S+?)=
or
// matches "test=, test" too
(\S[^=]+)=
you should consider using the second version with the first. given your line "test=this=that=more text follows", version 1 will match test=this=that=, and then continue parsing to the end of the line. then he will back off and find test=this=, continue the rollback and find test=, continue the indentation and return on test=as the final answer.
2 test=, . , .