thanks wysota, it worked perfect.

i guess the problem was me using this:
Qt Code:
  1. str.indexOf(rx);
To copy to clipboard, switch view to plain text mode 

the index is always -1.