To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.admin.generalOpen lugnet.admin.general in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Administrative / General / 6062
    Re: Lost Instructions —Todd Lehman
   (...) Oops -- doy -- that should be a square closing bracket -- m/^[Rr][Ee]:\s*/ --Todd (...) (24 years ago, 13-Apr-00, to lugnet.admin.general)
   
        Re: Lost Instructions —Dan Boger
   (...) m/^Re:\s+/i ? Dan (24 years ago, 13-Apr-00, to lugnet.admin.general)
   
        Re: Lost Instructions —Todd Lehman
   (...) Ya, that oughtta work too. :) Say, I just remembered one thing from cc:Mail -- it puts (or used to -- not sure if it's still the case today) the reply depth count in square brackets between "Re" and ":", i.e.: Re: blah blah blah Re[2]: blah (...) (24 years ago, 13-Apr-00, to lugnet.admin.general)
   
        Re: Lost Instructions —Dan Boger
   (...) just for efficiancy's sake, you shouldn't put a /s* at the end - it's not doing anything at all, is it? if there's anything that matches the /s class, it'll just take longer to complete the match, but if there's no /s at the end, it'll still (...) (24 years ago, 13-Apr-00, to lugnet.admin.general)
   
        Re: Lost Instructions —Todd Lehman
   (...) True -- the \s* isn't doing anything in that case. The regex could be considered a shorter form of ($subject_base) = ($subject_raw =~ m/^(Re(?:\[\d+\]):\s...?(.*)$/i); in which the \s* is actually needed. I left it on in the example way above (...) (24 years ago, 13-Apr-00, to lugnet.admin.general)
 

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR