> Perlwannabe wrote:
>>
>> I originally tried to do this, but it won't work. The data doesn't
>> _always_ have a <tab> before address, sometimes (although seldom) it
>> has a <space>. With grep I would miss the entire address. However,
>> if I were to just select everything and replace it with nothing, that
>> would be the answer. BTW...your solution above is right on the money
>> for about 98% of the file. However, by simply scanning the line and
>> deleting everything between between HOW and NUMBER: that would give
>> me 100%. Any ideas?
>
> You could try this:
>
> s/\tHOW.+?\sNUMBER:\s*\S+\t/\t/;
Hah!!! I got it. FINALLY!!! Thank you so much for the help. It was a
simple matter of using s/// instead of tr///. I am not sure why, but
it works...The tr/// function does not work at all...Any ideas why?
s{ (?<=HOW) (.+?) (?<=NUMBER\t) } { ( $a = $1 ) =~ s/$a/ /; $a }ex;
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]