in reply to Re: Re: Useful Uses of regex code expressions?
in thread Useful Uses of regex code expressions?

Regarding 1: That most certainly is an undocumented feature. According go perlre:

(?(condition)yes-pattern|no-pattern) (?(condition)yes-pattern) Conditional expression. (condition) should be either an integer in par +entheses (which is valid if the corresponding pair of parentheses mat +ched), or look-ahead/look-behind/evaluate zero-width assertion.

Update: I saw, and read that phrase; however, my brain hates me and skipped processing it correctly ;(

Replies are listed 'Best First'.
Re: Re: Re: Re: Useful Uses of regex code expressions?
by Anonymous Monk on Jun 27, 2002 at 22:36 UTC
    Regarding 1: That most certainly is an undocumented feature

    It is documented in the chunk of perlre you quoted

    ... or look-ahead/look-behind/evaluate zero-width assertion.

    It can be an integer or

    • a look-ahead zero width assertion
    • a look-behind zero width assertion
    • an evaluate zero width assertion