[Qt-interest] [SOLVED] Problems with QRegExp , can not Match URL Escaped String
Aaron Lewis
aaron.lewis1989 at gmail.com
Sun Feb 28 11:04:32 CET 2010
Thanks , i should use parentheses , that helps : )
Thiago Macieira wrote:
> Em Domingo 28. Fevereiro 2010, às 03.18.23, Aaron Lewis escreveu:
>
>> Hi,
>> I tried to match string like "%69%ac%20"
>>
>> I will match "%" first , then two numbers.
>> And this pattern should appear at least once.
>>
>> However , this aim't gonna work.
>>
>> QRegExp isEscape("^%[0-9]{2}{1,}$");
>>
>> Do i forgot something here?
>>
>
> Yes, the parentheses around the block:
>
> "^(%[0-9]{2})+$"
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
--
Best Regards,
Aaron Lewis - PGP: 0xA476D2E9
irc: A4r0n on freenode
More information about the Qt-interest-old
mailing list