[Qt-interest] Some characters breaking QRegExp
Alexandre Beraud
aberaud at infflux.com
Wed Oct 20 10:55:13 CEST 2010
I don't think so. The hyphen is a special character in characters
range only ([a-z]). However, I think that the .* at the beginning and
the end of the pattern are useless, and I would make the search not
greedy (.+?). Not that it would solve the problem anyway. Could there be
a problem with the file's encoding ?
Regards,
Alex
Le 20/10/2010 10:39, NoRulez a écrit :
> you must escape
> QRegExp rx_val( ".*font\-family:.+\">(.+)<!.*" );
>
> Am 20.10.2010 um 10:34 schrieb Paul England <pengland at cmt-asia.com
> <mailto:pengland at cmt-asia.com>>:
>
>> QRegExp rx_val( ".*font-family:.+\">(.+)<!.*" );
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101020/6b24679c/attachment.html
More information about the Qt-interest-old
mailing list