[TriLUG] regular expression

acoliver acoliver at nc.rr.com
Thu Aug 16 13:50:24 EDT 2001


Cool, thats what I ended up doing, it finally hit me immediately after
typing the message. Hope its efficient.. or no one minds the server
dragging...  :-)

-Andy
:wq

>On Thu, 16 Aug 2001 13:38:17 -0400 (EDT) <anomad at npav.com> wrote.
>On Thu, 16 Aug 2001, acoliver wrote:
>
>> Hi all,  I'm not having a PERL day.
>>
>> Any one of you regular expression gurus have the answer to this
>>
>> If I have this (coming line by line from stdin):
>> $linein = 01072001/string.189.123123
>
>.. maybe
>
> ($a,$b,$c) = split(/\./, $linein);
>
>.. where $b would be whatevers inside the periods.
>
>
>
>-james
>(a nomad. )
>




More information about the TriLUG mailing list