my ($mytempvar) = $linetoprobe =~ /(^.*)ZZZ/;
------------------------------ James Schappet http://www.schappet.com On Tue, 12 Nov 2002, Terry Vaughn wrote: > Hello all. > > $linetoprobe = "XXXXYYY~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 > _______________________________________________ Perl-Unix-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs