Re: [Perl-unix-users] regexp Q

2002-11-12 Thread Terry Vaughn
Thanks for your answers. They were helpful. Terry >>> "Terry Vaughn" <[EMAIL PROTECTED]> 11/12/02 03:20PM >>> THis is the best I could come up with so far.would prefer to use something with reg expressions : $linetoprobe = "YYY~ZZZ"; @mytempvalue = split(/ZZZ/, $linetoprobe); print sub

Re: [Perl-unix-users] regexp Q

2002-11-12 Thread Terry Vaughn
THis is the best I could come up with so far.would prefer to use something with reg expressions : $linetoprobe = "YYY~ZZZ"; @mytempvalue = split(/ZZZ/, $linetoprobe); print substr(@mytempvalue[0], -1); >>> "Terry Vaughn" <[EMAIL PROTECTED]> 11/12/02 03:11PM >>> Hello all. $linetoprobe

Re: [Perl-unix-users] regexp Q

2002-11-12 Thread jimmy
my ($mytempvar) = $linetoprobe =~ /(^.*)ZZZ/; -- James Schappet http://www.schappet.com On Tue, 12 Nov 2002, Terry Vaughn wrote: > Hello all. > > $linetoprobe = "YYY~ZZZ" ; > > How Do I assign $mytempvar the character immediately prior to "ZZZ" using reg exp??

RE: [Perl-unix-users] regexp Q

2002-11-12 Thread Matt Schneider
$mytempvar) = -Original Message- From: Terry Vaughn [mailto:tvaughn@;dakotagrowers.com] Sent: Tuesday, November 12, 2002 2:11 PM To: [EMAIL PROTECTED] Subject: [Perl-unix-users] regexp Q Hello all. $linetoprobe = "YYY~ZZZ" ; How Do I assign $mytempvar the character immediately

[Perl-unix-users] regexp Q

2002-11-12 Thread Terry Vaughn
Hello all. $linetoprobe = "YYY~ZZZ" ; How Do I assign $mytempvar the character immediately prior to "ZZZ" using reg exp?? Terry ___ Perl-Unix-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs