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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.