C++ (Qt)QString::replace("[work]", "<work>");
QString txt = "[[http://www.prog.org.ru/ prog]]";QRegExp reg_exp("\\[\\[(.+)\s+(.+)\\]\\]");if(reg_exp.indexIn(txt) != -1) { QString res = "<a href=\"" + reg_exp.cap(1) + "\">" + reg_exp.cap(2) + "</a>";}