Purely out of curiosity, is there a more elegant way to simply get the substring after the first = symbol in a string? The following works to give back name=b
=
name=b
There's also this way:
string.partition('=')[2]
And this one:
string.sub(/.*?=/, '')
I think I prefer the regexp way you mentioned, though.