I want to define a regular expression containing angular brackets <> such that whatever I write in these brackets gets some pattern.. e.g QRegExp rx; rx.setForeground("orange");.. Can anyone help me with how to define such a regular expression?