Beautiful!! I'm hoping enlightenment will follow once my mind gets over being boggled. Can you point me to some documentation that explains what the output means?
Compiling REx "exception:" Final program: 1: EXACT <exception:> (5) 5: END (0) anchored "exception:" at 0 (checking anchored isall) minlen 10 Compiling REx "\Gtex" Final program: 1: GPOS (2) 2: EXACT <tex> (4) 4: END (0) anchored "tex" at 0 (checking anchored noscan isall) anchored(GPOS) GP +OS:0 minlen 3 Guessing start of match in sv for REx "exception:" against "exception: +tex" Found anchored substr "exception:" at offset 0... Guessed: match at offset 0 Matching REx "\Gtex" against "exception:tex" 10 <xception:> <tex> | 1:GPOS(2) 10 <xception:> <tex> | 2:EXACT <tex>(4) 13 <xception:tex> <> | 4:END(0) Match successful! Guessing start of match in sv for REx "exception:" against "exception: +mex" Found anchored substr "exception:" at offset 0... Guessed: match at offset 0 Matching REx "\Gtex" against "exception:mex" 10 <xception:> <mex> | 1:GPOS(2) 10 <xception:> <mex> | 2:EXACT <tex>(4) failed... Match failed Guessing start of match in sv for REx "exception:" against "exception: +mex" Found anchored substr "exception:" at offset 0... Guessed: match at offset 0 Matching REx "\Gtex" against "exception:mex" 10 <xception:> <mex> | 1:GPOS(2) 10 <xception:> <mex> | 2:EXACT <tex>(4) failed... Match failed Guessing start of match in sv for REx "exception:" against "tex:except +ion:mex" Found anchored substr "exception:" at offset 4... Starting position does not contradict /^/m... Guessed: match at offset 4 Matching REx "\Gtex" against "tex:exception:mex" 14 <xception:> <mex> | 1:GPOS(2) 14 <xception:> <mex> | 2:EXACT <tex>(4) failed... Match failed Guessing start of match in sv for REx "exception:" against "exception: +mex" Found anchored substr "exception:" at offset 0... Guessed: match at offset 0 Matching REx "\Gtex" against "exception:mex" 10 <xception:> <mex> | 1:GPOS(2) 10 <xception:> <mex> | 2:EXACT <tex>(4) failed... Match failed Guessing start of match in sv for REx "exception:" against "exception: +mex" Found anchored substr "exception:" at offset 0... Guessed: match at offset 0 Matching REx "\Gtex" against "exception:mex" 10 <xception:> <mex> | 1:GPOS(2) 10 <xception:> <mex> | 2:EXACT <tex>(4) failed... Match failed $VAR1 = [ 'exception:mex', 'exception:mex', 'tex:exception:mex', 'exception:mex', 'exception:mex' ]; Guessing start of match in sv for REx "exception:" against "exception: +tex" Found anchored substr "exception:" at offset 0... Guessed: match at offset 0 Matching REx "\Gtex" against "exception:tex" 10 <xception:> <tex> | 1:GPOS(2) 10 <xception:> <tex> | 2:EXACT <tex>(4) 13 <xception:tex> <> | 4:END(0) Match successful! Guessing start of match in sv for REx "exception:" against "exception: +mex" Found anchored substr "exception:" at offset 0... Guessed: match at offset 0 Matching REx "\Gtex" against "exception:mex" 10 <xception:> <mex> | 1:GPOS(2) 10 <xception:> <mex> | 2:EXACT <tex>(4) failed... Match failed Guessing start of match in sv for REx "exception:" against "exception: +mex" Found anchored substr "exception:" at offset 0... Guessed: match at offset 0 Matching REx "\Gtex" against "exception:mex" 10 <xception:> <mex> | 1:GPOS(2) 10 <xception:> <mex> | 2:EXACT <tex>(4) failed... Match failed Guessing start of match in sv for REx "exception:" against "tex:except +ion:mex" Found anchored substr "exception:" at offset 4... Starting position does not contradict /^/m... Guessed: match at offset 4 Matching REx "\Gtex" against "tex:exception:mex" 14 <xception:> <mex> | 1:GPOS(2) 14 <xception:> <mex> | 2:EXACT <tex>(4) failed... Match failed Guessing start of match in sv for REx "exception:" against "exception: +mex" Found anchored substr "exception:" at offset 0... Guessed: match at offset 0 Matching REx "\Gtex" against "exception:mex" 10 <xception:> <mex> | 1:GPOS(2) 10 <xception:> <mex> | 2:EXACT <tex>(4) failed... Match failed Guessing start of match in sv for REx "exception:" against "exception: +mex" Found anchored substr "exception:" at offset 0... Guessed: match at offset 0 Matching REx "\Gtex" against "exception:mex" 10 <xception:> <mex> | 1:GPOS(2) 10 <xception:> <mex> | 2:EXACT <tex>(4) failed... Match failed $VAR1 = [ 'exception:mex', 'exception:mex', 'tex:exception:mex', 'exception:mex', 'exception:mex' ]; Guessing start of match in sv for REx "exception:" against "exception: +tex" Found anchored substr "exception:" at offset 0... Guessed: match at offset 0 Matching REx "\Gtex" against "exception:tex" 10 <xception:> <tex> | 1:GPOS(2) 10 <xception:> <tex> | 2:EXACT <tex>(4) 13 <xception:tex> <> | 4:END(0) Match successful! Guessing start of match in sv for REx "exception:" against "exception: +mex" Found anchored substr "exception:" at offset 0... Guessed: match at offset 0 Matching REx "\Gtex" against "exception:mex" 10 <xception:> <mex> | 1:GPOS(2) 10 <xception:> <mex> | 2:EXACT <tex>(4) failed... Match failed Guessing start of match in sv for REx "exception:" against "exception: +mex" Found anchored substr "exception:" at offset 0... Guessed: match at offset 0 Matching REx "\Gtex" against "exception:mex" 10 <xception:> <mex> | 1:GPOS(2) 10 <xception:> <mex> | 2:EXACT <tex>(4) failed... Match failed Guessing start of match in sv for REx "exception:" against "tex:except +ion:mex" Found anchored substr "exception:" at offset 4... Starting position does not contradict /^/m... Guessed: match at offset 4 Matching REx "\Gtex" against "tex:exception:mex" 14 <xception:> <mex> | 1:GPOS(2) 14 <xception:> <mex> | 2:EXACT <tex>(4) failed... Match failed Guessing start of match in sv for REx "exception:" against "exception: +mex" Found anchored substr "exception:" at offset 0... Guessed: match at offset 0 Matching REx "\Gtex" against "exception:mex" 10 <xception:> <mex> | 1:GPOS(2) 10 <xception:> <mex> | 2:EXACT <tex>(4) failed... Match failed Guessing start of match in sv for REx "exception:" against "exception: +mex" Found anchored substr "exception:" at offset 0... Guessed: match at offset 0 Matching REx "\Gtex" against "exception:mex" 10 <xception:> <mex> | 1:GPOS(2) 10 <xception:> <mex> | 2:EXACT <tex>(4) failed... Match failed $VAR1 = [ 'exception:mex', 'exception:mex', 'tex:exception:mex', 'exception:mex', 'exception:mex' ]; Guessing start of match in sv for REx "exception:" against "exception: +tex" Found anchored substr "exception:" at offset 0... Guessed: match at offset 0 Matching REx "\Gtex" against "exception:tex" 10 <xception:> <tex> | 1:GPOS(2) 10 <xception:> <tex> | 2:EXACT <tex>(4) 13 <xception:tex> <> | 4:END(0) Match successful! Guessing start of match in sv for REx "exception:" against "exception: +mex" Found anchored substr "exception:" at offset 0... Guessed: match at offset 0 Matching REx "\Gtex" against "exception:mex" 10 <xception:> <mex> | 1:GPOS(2) 10 <xception:> <mex> | 2:EXACT <tex>(4) failed... Match failed Guessing start of match in sv for REx "exception:" against "exception: +mex" Found anchored substr "exception:" at offset 0... Guessed: match at offset 0 Matching REx "\Gtex" against "exception:mex" 10 <xception:> <mex> | 1:GPOS(2) 10 <xception:> <mex> | 2:EXACT <tex>(4) failed... Match failed Guessing start of match in sv for REx "exception:" against "tex:except +ion:mex" Found anchored substr "exception:" at offset 4... Starting position does not contradict /^/m... Guessed: match at offset 4 Matching REx "\Gtex" against "tex:exception:mex" 14 <xception:> <mex> | 1:GPOS(2) 14 <xception:> <mex> | 2:EXACT <tex>(4) failed... Match failed Guessing start of match in sv for REx "exception:" against "exception: +mex" Found anchored substr "exception:" at offset 0... Guessed: match at offset 0 Matching REx "\Gtex" against "exception:mex" 10 <xception:> <mex> | 1:GPOS(2) 10 <xception:> <mex> | 2:EXACT <tex>(4) failed... Match failed Guessing start of match in sv for REx "exception:" against "exception: +mex" Found anchored substr "exception:" at offset 0... Guessed: match at offset 0 Matching REx "\Gtex" against "exception:mex" 10 <xception:> <mex> | 1:GPOS(2) 10 <xception:> <mex> | 2:EXACT <tex>(4) failed... Match failed $VAR1 = [ 'exception:mex', 'exception:mex', 'tex:exception:mex', 'exception:mex', 'exception:mex' ]; Freeing REx: "exception:" Freeing REx: "\Gtex"
In reply to Re^2: strange behavior of grep with global match
by ig
in thread strange behavior of grep with global match [resolved]
by ig
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |