> -----Original Message----- > From: A. Rivera [mailto:[EMAIL PROTECTED]] > Sent: Thursday, November 29, 2001 6:20 PM > To: [EMAIL PROTECTED] > Subject: I thought I knew.... > > > OK, I have this.. > > $longdate="Fri November 29, 2001"; > And I want just the November 29, 2001 part. > > I tried.. > $longdate=~ s/(.*) (.*)/$2/g; > =~ s/(.*) ?(.*)/$2/g; > =~ s/(.*) *?(.*)/$2/g; > =~ s/(.*)\s*?(.*)/$2/g; > > I'm stumped. Help.
Why all the regex stuff? A simple substr() should suffice, no? $longdate = substr($longdate, 4); -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]