Hey guys, thanks for your help!

I found out about $`, $& and $', as well as $1 - $9. But here is still
the problem. They do *find* the "abc" or "xxx" in front of "y"

But I *cannot* act on them, I can only read them.
I am saying, I can't do something like

$` = " <#{$`}>"

these variables seem to be read-only

Any ideas?

Thanks again!
On Jul 28, 1:05 pm, coreypurcell <[email protected]> wrote:
> str = "vvvyxxx"
>
> str =~ /y/
>
> $`
>  => "vvv"
>
> $'
>  => "xxx"
>
> Like spacecow said. It's $ Backtick
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to