in reply to Re: Re: reg ex help
in thread reg ex help

In my defense ;-) that is only if the A7 was followed by a newline of course which it was not in the sample. $/ is probably not the best solution to this problem but it is a very useful widget.

cheers

tachyon

Replies are listed 'Best First'.
Re: Re: Re: Re: reg ex help
by ishnid (Monk) on Apr 15, 2004 at 11:43 UTC

    In your . . . offen[cs]e (?) ;)

    Once you changed $/, chomp isn't looking for newlines anymore - it'll be removing spaces, which are still attached to the end of each number.

      Fair enough.

      cheers

      tachyon