3 ms·This (ruby) regex thing still gives me a headache , esp when I'm trying to figure out other people's codeby nanijoe 17y agoThis (ruby) regex thing still gives me a headache , esp when I'm trying to figure out other people's codesh1mmer 17y agoI love regex, but man it's still crazy voodoo. I hope those lines were well commented.deleted 17y ago[deleted]carbon8 17y agoYou can also use this as String#slice, which is a little clearer: "foo@example.com".slice(/@(.*)/, 1)