what does "$&" mean in Ruby

Viewed 3569

I notice one line code in spree library:

label_with_first_letters_capitalized = t(options[:label]).gsub(/\b\w/)#{$&.upcase}

could someone tell me what does "$&" mean ? thanks!

3 Answers
Related