From: "James B. Byrne" Date: 2006-02-10T01:12:48+09:00 Subject: Re: Ruby 1.8.4 behaviour - 2 questions Please ignore the "[" typo in the original post. The actual construct used is given below: > Problem 1. > > whereas f_nam_re = Regexp.new(f_nam_re_s, "m") produces this: > > The passed regexp is: > ^QPCCCMR[[:digit:]]$ > The regexp used is: > /^QPCCCMR[[:digit:]]$/i > $= is: false > qpcccmr1 matches > QPCCCMR1 matches > QPCCMMR1 does not match > qpCCCMR1 matches > QPCCCMRC does not match > QPCCCMR1.csv does not match > QPCCCMR9 matches > XXQPCCCMR9 does not match > QPCCCMR9yyy does not match > XyZQPCCCMR3AbC does not match > > I get the same result if I substitute "x" for "m" in the call. What is > going on? > > -- Posted via http://www.ruby-forum.com/.