Hello Jean-François,

2006/6/28, Jean-François <[EMAIL PROTECTED]>:
By the way, isn't \A \z better than \A \Z ?

Actually, you might be right, except in this case it doesn't matter.
From "Programming Ruby" 2nd edition, p. 70, section Anchors:

"""The sequence \A matches the beginning of a string, and \z and \Z
match the end of a string. (Actually, \Z matches the end of a string
/unless/ the string ends with a \n, in which case it matches just
before the \n.)"""

Thanks for bringing this up.  I wasn't aware of \z.

Bye !
--
François Beausoleil
http://blog.teksol.info/
_______________________________________________
Rails-core mailing list
Rails-core@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-core

Reply via email to