[Qt-interest] Problems with QRegExp , can not Match URL Escaped String

Thiago Macieira thiago at kde.org
Sun Feb 28 10:27:07 CET 2010


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})+$"

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100228/46be8b1c/attachment.bin 


More information about the Qt-interest-old mailing list