[Interest] QRegExp help: boundaries
Sensei
senseiwa at gmail.com
Wed Mar 27 11:57:42 CET 2013
On 3/27/13 11:47am, paulf at free.fr wrote:
> ----- Original Message -----
>> You need to esc the \b. Write \\b instead.
>
> Hi
>
> There's a QRegExp tester in the Qt examples. I've always found this
> very useful for checking that the regexp is valid and that it does as
> expected. It can also produce correctly quoted strings that you can
> copy and paste into your source code.
Paul, that saved my day! It's a very useful tool!
There is a little catch here, though: I must use "\\documentclass\\b",
without a preceding \b, or it wouldn't be recognized.
I assume that "nothing" isn't a valid boundary here.
Am I right?
Thank you very much, again: that qt example is neat!
Cheers!
More information about the Interest
mailing list