Re: Regular Expression newbie question about upper & lower c



Peter Vanderhaden wrote:

a =~ /^y/i

Thank you much. Does the i at the end of the expression indicate
case-insensitivity?

yes, it is a modifier, and i for case insensitivity and m for multiline
for a dot "." to match everything including a "\n" character.

--
Posted via http://www.ruby-forum.com/.

.