Displaying 1 result from an estimated 1 matches for "qpcccmr9yyi".
Did you mean:
qpcccmr9yyy
2006 Feb 08
0
Stange regexp problem with case sensitivity
Environment:
CentOS 4.2 (RHES4 clone)
Ruby 1.8.4
Rails 1.0
I am having a small difficulty with case sensitive matching in some
ruby code:
f_nam_re = Regexp.new(f_nam_re_s,"x")
produces these test results:
The passed regexp: ^QPCCCMR[[:digit:]]$
The regexp used is:
/^QPCCCMR[[:digit:]]$/i
$= is false
qpcccmr1 matches
QPCCCMR1 matches
QPCCMMR1 does not match
qpCCCMR1 matches
QPCCCMRC