From: Markus Date: 2004-10-15T01:07:47+09:00 Subject: Re: Oniguruma Part 2 IIRC, \010 if backspace, not bell. That would make 'a' (attention?) the bell. On Thu, 2004-10-14 at 03:39, Christian Kaiser wrote: > Yes, I just found that out. I saw the code > > static int > conv_backslash_value(int c, ScanEnv* env) > { > if (IS_SYNTAX_OP(env->syntax, ONIG_SYN_OP_ESC_CONTROL_CHARS)) { > switch (c) { > case 'n': return '\n'; > case 't': return '\t'; > case 'r': return '\r'; > case 'f': return '\f'; > case 'a': return '\007'; > case 'b': return '\010'; > case 'e': return '\033'; > case 'v': > if (IS_SYNTAX_OP2(env->syntax, ONIG_SYN_OP2_ESC_V_VTAB)) > return '\v'; > break; > > default: > break; > } > } > return c; > } > > which was very tempting to assume that problem... > > Thanks for your help! > > BTW: Do you have any idea how to fix the bug from my first mail > ("upper=-1...")? > > Christian > > "ts" schrieb im Newsbeitrag > news:200410141011.i9EABQ821327@moulon.inra.fr... > > >>>>> "C" == Christian Kaiser writes: > > > > CIn Oniguruma, '\b' matches the "bell" character. > > > > ??? > > > > svg% ruby -rjj -e '"xxxaaaxxx aaa".match(/\baaa\b/)' > > Regexp /\baaa\b/ > > 0 word-bound > > 1 exact3 aaa > > 2 word-bound > > 3 end > > Optimize EXACT_BM : aaa > > > > String <> pos=3 > > > > 0 word-bound xxx|aaaxxx aaa |FAIL > > > > String <> pos=10 > > > > 0 word-bound xaaaxxx |aaa | > > 1 exact3 xaaaxxx |aaa | > > 2 word-bound axxx aaa| | > > 3 end axxx aaa| | > > svg% > > > > > > > > > > Guy Decoux > > > > > >