Hi I try to write an "FindQt4.cmake"-File and need to know how to replace "../.." with ${QT_DIR} I tried this: STRING(REGEX REPLACE "\.\./\.\." "${QT_DIR}" QT_QGLOBAL_FILE "${QT_QGLOBAL_H_FILE}) But the regexpression does not get recognised ... even though I think it's correct. Can you help me ? Bye Jens Henrik