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 2,449 of 2,753    |
|    Ben Hanson to Hans-Peter Diettrich    |
|    Re: Regular expression string searching     |
|    13 Mar 18 14:23:40    |
      From: jamin.hanson@googlemail.com              On Tuesday, 13 March 2018 19:33:53 UTC, Hans-Peter Diettrich wrote:       > > State: 0       > > [/] -> 1       > >       > > State: 1       > > [*] -> 2       > >       > > State: 2       > > [^*] -> 2       > > [*] -> 3       >       > I'm just curious about the notation.       > What happens if neither pattern matches?       > What's the purpose of [^*] in state 2, as opposed to state 1?              In state 2 you are either looping on [^*] (anything other than '*') or       changing state to state 3 on '*'.              I'm not sure I understand your question.              Regards,              Ben              --- 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