[Interest] QRegExp help: boundaries

Paul Floyd paulf at free.fr
Wed Mar 27 21:15:50 CET 2013


On 27 Mar 2013, at 11:57, Sensei wrote:

> 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?
> 

Hi

Generally ^ and $ denote the beginning and end of a line.

A+
Paul



More information about the Interest mailing list