Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.compilers    |    Compiler construction, theory, etc. (Mod    |    2,753 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 1,627 of 2,753    |
|    glen herrmannsfeldt to torbenm@pc-003.diku.dk    |
|    Re: additional regular expression operat    |
|    16 Apr 09 17:57:15    |
   
   From: gah@ugcs.caltech.edu   
      
   Torben ?gidius Mogensen wrote:   
   > Ralph Boland writes:   
      
   >>> > R% : equivalent to the string (R~)R   
      
   Someone else wrote:   
      
   >>> I can see the usefulness of the first two, but not really   
   >>> the third. Do you have an example?   
      
   (snip)   
      
   Sometimes you want to find the shortest match. (I believe the GNU   
   regexp has an operator for it, but I don't remember what it is.)   
      
   ^.*XYZ   
      
   will normally match up to the last XYZ on the input record, but   
   sometimes you want the first one. I do agree that there should be a   
   convenient operator for that.   
      
   -- glen   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca