Hello,

I am trying to match a string within {STRING}.

i tried using the following code:
Qt Code:
  1. QRegExp exp("\{.*\}");
To copy to clipboard, switch view to plain text mode 

and i even tried it for a specific word that i know exists, like:
Qt Code:
  1. QRegExp exp("\{file\}");
To copy to clipboard, switch view to plain text mode 

and i also tried:
Qt Code:
  1. QRegExp exp("\\{file\\}");
To copy to clipboard, switch view to plain text mode 

non of these worked, any ideas on how to do this ?