On Thu, Jan 14, 2010 at 12:50 PM, Robert Klemme
<shortcutter / googlemail.com> wrote:
> 2010/1/13 Jes=FAs Gabriel y Gal=E1n <jgabrielygalan / gmail.com>:
>> On Wed, Jan 13, 2010 at 6:33 PM, Justin Coyne <digger250 / gmail.com> wrot=
e:
>>> Looks like I've solved my own problem the \Z in ruby doesn't have the
>>> same semantics as it does in other languages. =A0There is a \z which is
>>> what I wanted so as expected:
>>>
>>> /\A\n\z/m.match("\n\n") =3D> nil
>>
>> \z =A0 =A0 =A0 =A0 =A0 =A0end of a string
>> \Z =A0 =A0 =A0 =A0 =A0 =A0end of a string, or before newline at the end
>>
>> So, \Z allows an extra \n at the end of the string.
>
> For the reference here's the doc:
> http://www.geocities.jp/kosako3/oniguruma/doc/RE.txt

Good to know thanks. I copied the quote from:

http://www.zenspider.com/Languages/Ruby/QuickRef.html#11

Thanks.

Jesus.