#include <config.h>
#include "../support/debug.h"
-#include "../support/regex.h"
#include <iostream>
+#include <regex>
using namespace lyx;
//
// NOTE that } is not allowed in blah2.
regex const reg("(.*)\\\\label\\{(.*?)\\}(.*)");
- string const new_cap("\\1\\3},label={\\2");
+ string const new_cap("$1$3},label={$2");
return regex_replace(cap, reg, new_cap);
}