Loading ...
Sorry, an error occurred while loading the content.

Re: [PBML] Need help with reg expression

Expand Messages
  • 秦斌
    try if($string =~ m/^ S{1,8} . S{0,3}$/){print $string} ; 2010/10/2 asp66 ... [Non-text portions of this message have been removed]
    Message 1 of 4 , Oct 4, 2010
    • 0 Attachment
      try
      if($string =~ m/^\S{1,8}\.\S{0,3}$/){print $string} ;


      2010/10/2 asp66 <asp66@...>

      >
      >
      > Hi all,
      >
      > I have a quick question. I am trying to make sure only 8.3 type string is
      > matched but the below code prints 8.4 . Is there a way I could make sure it
      > gets ignored or return false since its not matching 8.3
      >
      > $string = "abcdefgh.txtt" ;
      > if($string =~ m/^\S{1,8}\.\S{0,3}/){print $string} ;
      >
      > any help appreciated,
      > regards
      >
      >
      >


      [Non-text portions of this message have been removed]
    Your message has been successfully submitted and would be delivered to recipients shortly.