in reply to Re: Regex to match 20 chars of some digits followed by some spaces
in thread Regex to match 20 chars of some digits followed by some spaces

Excellent. Piqued my interest in this approach, which led to a few observations:

The PerlMonk tr/// Advocate

Replies are listed 'Best First'.
Re: Re:^2 Regex to match 20 chars of some digits followed by some spaces
by ysth (Canon) on Dec 21, 2003 at 01:40 UTC
    I actually have never used Parse::RecDescent but was assuming it was working on an input buffer using the supplied regex as something like /\G$regex/gc so I didn't supply a beginning anchor and an ending anchor is not usable. I haven't got around to checking my assumption yet...and you know what they say when you assUme.
      Well, I've read through Parse::RecDescent and it does work as I had guessed. So solutions to this problem should not have ^ and may not depend on $.