[Qt-interest] Problem with qregexpr

matteo matteo.ceruti at task84.it
Mon Oct 5 14:28:26 CEST 2009


No error occured with errorString() and it doesn't match with 
QRegExp("^(--\\s*STRING)$").

Teo

Sean Harmer wrote:
> On Monday 05 Oct 2009 12:39:05 matteo wrote:
> 
>>Hi,
>>I have the string
>>
>>--STRING
>>
>>If I try to match whith QRegExp("--\\s*STRING") it runs, but if I try
>>with  QRegExp("\\b(--\\s*STRING)\\b") it doesn't match.
>>
>>Where is my mistake?
> 
> Just a guess, but have you tried:
> 
> QRegExp("^(--\\s*STRING)$")
> 
> ? Does QRegExp itself report any errors from errorString()?
> 
> Sean



More information about the Qt-interest-old mailing list