home bbs files messages ]

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,858 of 2,753   
   Quinn Tyler Jackson to Tangel   
   Re: '^' and '$' in Regular expression   
   22 Apr 10 09:12:42   
   
   From: quinn_jackson2004@yahoo.ca   
      
   On Wed, Apr 21, 2010 at 10:46 PM, Tangel  wrote:   
      
   > But when the regexp is /a*/, and the buffer is "aaaaa",   
   > after the pre-precessing, "\naaaaa\n" is not acceptable for /a*/.   
      
   The key here is that the state-machine must equate both \n and the   
   start state with a beginning-of-line state and \n and the final   
   no-more-input with the end-of-line state. In this way you no longer   
   need to pad the input with sentinels.   
      
   Cheers,   
   Quinn   
      
   --- 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