[Qt-interest] [SOLVED] Removing fixed string by QRegExp

M. Bashir Al-Noimi mbnoimi at gmx.com
Sun Apr 18 05:31:12 CEST 2010


Thanks Constantin it works now ;-)

On 17/04/2010 09:57 م, Constantin Makshin wrote:
> Try
>
> str.remove(QRegExp("\\bmy\\b",Qt::CaseInsensitive));
>
> On Sat, 17 Apr 2010 22:14:48 +0400, M. Bashir Al-Noimi<mbnoimi at gmx.com>  wrote:
>    
>> Hi folks,
>>
>> Once again I faced a problem with QRegExp... sorry for disturbance :-[
>>
>> I want to remove fixed string from QString for example:
>>
>> "This is my mysterious issue"
>>
>> after removing 'my' it will be:
>>
>> "This is mysterious issue"
>>
>> so I tried the followings:
>>
>> str.remove(QRegExp("my",Qt::CaseInsensitive,QRegExp::FixedString));
>>
>> str.remove(QRegExp("^my$",Qt::CaseInsensitive));
>>
>> str.remove(QRegExp("my",Qt::CaseInsensitive,QRegExp::Wildcard));
>>
>> but no-one didn't fix the issue! Could you please help me?
>>      
>    

-- 
Best Regards
Muhammad Bashir Al-Noimi
My Blog: http://mbnoimi.net

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100418/e36fa695/attachment.html 


More information about the Qt-interest-old mailing list