From: ts Date: 2002-03-01T23:37:21+09:00 Subject: Re: Ruby Regular Expression problem >>>>> "T" == Thomas Hurst writes: T> Maybe you should turn on RE debug output in Perl and see how it really T> handles it :) pigeon% perl -Dr -e '/X(?:.*..?.)+X/' Compiling REx `X(?:.*..?.)+X' size 16 Got 132 bytes for offset annotations. first at 1 rarest char X at 0 rarest char X at 0 1: EXACT (3) 3: CURLYX[0] {1,32767}(13) 5: STAR(7) 6: REG_ANY(0) 7: REG_ANY(8) 8: CURLY {0,1}(11) 10: REG_ANY(0) 11: REG_ANY(12) 12: WHILEM[1/1](0) 13: NOTHING(14) 14: EXACT (16) 16: END(0) anchored `X' at 0 floating `X' at 3..2147483647 (checking floating) minlen 4 Offsets: [16] 1[1] 0[0] 12[1] 5[1] 6[1] 5[1] 7[1] 9[1] 0[0] 8[1] 10[1] 12[0] 12[0] 13[1] 0[0] 14[0] Omitting $` $& $' support. EXECUTING... Freeing REx: `X(?:.*..?.)+X' pigeon% Floating at 3.. is important Guy Decoux