View Single Post
Old 26-01-2006, 08:39 PM   #19
plix
Game freak

 
Join Date: Oct 2005
Location: ,
Posts: 113
Default

Quote:
Originally posted by Kon-Tiki+Jan 26 2006, 02:41 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (Kon-Tiki @ Jan 26 2006, 02:41 PM)</td></tr><tr><td id='QUOTE'> How do you suggest I'd go 'bout it then? [/b]

<!--QuoteBegin-plix

Regular expressions are for matching patterns, not for constructing push-down automata.[/quote]
Use a push-down automaton (a finite state machine doesn't include a stack, which is necessary to do open- and close-tag matching. It's a bit harder to implement if you haven't written one before, but it's not only easier to maintain, it's much more flexible.
plix is offline                         Send a private message to plix
Reply With Quote