[Qt-interest] QRegExp for document analysing
Alexandre Beraud
aberaud at infflux.com
Mon Dec 6 14:18:58 CET 2010
Regex are easier to write of course. With capturing parenthesis you can
handle, with one single regex, several kinds of patterns. Therefore it
is also easier to read, provided that you comment your regex (it can be
easy to write a regex and difficult to read it one year later). If you
provide string beginning and end markers then the regex engine can work
very fast.
Regards,
Alex
Le 06/12/2010 13:59, Omar AKHAM a écrit :
> Okay, thank you...So how can I know when to use a regex and when to
> use a normal parser ?
>
> Omar.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101206/c950c150/attachment.html
More information about the Qt-interest-old
mailing list