![]() Topic awaiting preservation: regex to match numbers  | 
  |
|---|---|
| Author | Thread | 
| 
       Paranoid (IV) Inmate From: 127.0.0.1  | 
    
       
  posted 08-06-2005 06:22
      
      
     | 
  
| 
       Maniac (V) Mad Scientist From: :morF  | 
    
       
  posted 08-06-2005 07:59
      
      code: (?Ui)([/mipsor/images/])([0-9]{1,8})([\.jpg])
  | 
  
| 
       Paranoid (IV) Inmate From: 127.0.0.1  | 
    
       
  posted 08-06-2005 15:57
      
      
     | 
  
| 
       Paranoid (IV) Inmate From: Madison, Indiana, USA  | 
    
       
  posted 08-06-2005 19:07
      
      
     | 
  
| 
       Maniac (V) Mad Scientist From: :morF  | 
    
       
  posted 08-07-2005 00:20
      
      aah, yes... sorry.  I was treating the two literal strings as sets of characters.  | 
  
| 
       Paranoid (IV) Inmate From: Madison, Indiana, USA  | 
    
       
  posted 08-07-2005 22:47
      
      Also if you're just interested in the filename, you don't need the grouping parentheses around the path and extension. code: (?Ui)/mipsor/images/([0-9]{1,8})\.jpg
  | 
  
| 
       Maniac (V) Mad Scientist From: :morF  | 
    
       
  posted 08-08-2005 03:30
      
      It's a settings string, makes it case insensitive and flips the greediness  |