On 7/6/07, Thomas Wieczorek <wieczo.yo / googlemail.com> wrote:

> /^abc/ =~ "abc!"
> will return 0(the start of your pattern)
>
>
> > /abc$/ =~ "abc!"
> > returns nil
> > "You can use an anchor to match the end of a string"
>
> $ is used to mark the end of a string:
> /abc$/ =~ "!abc"
> will return 0 again.
A *very large* value of 0 that is ;)

Robert


-- 
I always knew that one day Smalltalk would replace Java.
I just didn't know it would be called Ruby
-- Kent Beck