Greg wrote:
I have an input file that I have to evaluate whether to include lines
based upon their last character.
Is there a simple regex that would allow me to assign the very last
character to a variable?
In my case it will either be A or I (capital i) if that helps?
while ( <$fh_in> )
On Sat, Feb 7, 2009 at 07:10, John W. Krahn wrote:
> Rob Dixon wrote:
>>
>> Greg wrote:
>>>
>>> I have an input file that I have to evaluate whether to include lines
>>> based upon their last character.
>>> Is there a simple regex that would allow me to
>>> assign the very last character to a vari
Rob Dixon wrote:
Greg wrote:
I have an input file that I have to evaluate whether to include lines
based upon their last character.
Is there a simple regex that would allow me to
assign the very last character to a variable?
^^^
^^^
Greg wrote:
I have an input file that I have to evaluate whether to include lines
based upon their last character.
Is there a simple regex that would allow me to assign the very last
character to a variable?
In my case it will either be A or I (capital i) if that helps?
/([AI])\z/ and my $vari
Greg wrote:
>
> I have an input file that I have to evaluate whether to include lines
> based upon their last character.
> Is there a simple regex that would allow me to assign the very last
> character to a variable?
>
> In my case it will either be A or I (capital i) if that helps?
>
> Thanks v
I have an input file that I have to evaluate whether to include lines
based upon their last character.
Is there a simple regex that would allow me to assign the very last
character to a variable?
In my case it will either be A or I (capital i) if that helps?
Thanks very much from a perl newb.
-G