|
|
The problem was that for one single \ you need \\\\ in a QRegExp,
somehow i missed it reading the docs the first time.
Christian Rengstl M.A.
Klinik und Poliklinik fÃr Innere Medizin II
Kardiologie - Forschung
UniversitÃtsklinikum Regensburg
B3 1.388
Franz-Josef-Strauss-Allee 11
93053 Regensburg
Tel.: +49-941-944-7230
>>> Till Oliver Knoll <oliver.knoll@xxxxxxxxxxx> 12.03.07 16.46 Uhr >>>
Mark Summerfield schrieb:
> On Mon 12-Mar-07, Christian Rengstl wrote:
>> ...
> I think you need
> \\small\\b
>
> Don't forget that \\ is itself a word boundary, so if you use it at
the
> beginning in this case the regex won't work.
The Qt example 'RegExp' is also very helpful. Not only can you verify
your regular expression with examples but it also provides the "escaped
pattern" (\ becomes \\ etc.) which you can directly paste into your C++
code :)
Cheers, Oliver
--
To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
"unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/
--
To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
"unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/
|
|