in reply to (jeffa) Re: Variable Length Parsing
in thread Variable Length Parsing

All, Thank you kindly. I tried several of your tactics and got it to break off at the {TCP} (still have more work though. I did not know you could use ^blah in mid stream. I thought it was "beginning of line" (opposite $). I assume that since I () paren'd it, then it WAS the beginning of the next undefined $4 (or whatever number) ?? (again forgive the ignorance with respect to the code and language.)

Replies are listed 'Best First'.
(jeffa) 3Re: Variable Length Parsing
by jeffa (Bishop) on Jun 09, 2003 at 00:58 UTC
    Yes, ^ can be used to negate a character class as well as anchor a match - it was not the parens that changed context, it was the square brackets (which denote a character class). Check out the docs, in particular, the sentence below xdigit.

    jeffa

    L-LL-L--L-LL-L--L-LL-L--
    -R--R-RR-R--R-RR-R--R-RR
    B--B--B--B--B--B--B--B--
    H---H---H---H---H---H---
    (the triplet paradiddle with high-hat)