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,856 of 2,753    |
|    Tangel to All    |
|    '^' and '$' in Regular expression    |
|    21 Apr 10 00:48:54    |
      From: march1896@gmail.com              Dear All:        I am writing a regexp lib which can be accessed on       http://code.google.com/p/snev/source/browse/#svn/trunk/tlab/regexp/new.       It use the theory in dragon book, regexp->NFA->DFA. but when I try to       match the '^'(begin of line) and '$'(end of line), some problems       occurs.        Other symbols except ^ and $ are 'really' characters, they can be       the weights of the edges, but ^ and $ are not.        And I try to match ^ and $ as '\n', and add '\n' to the ends of the       text, but it seems not a prefect solution.               Thanks.              --- 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