Pattern p = Pattern.compile("rename_method\\\\(" + // ignore \'rename_method(\'
"\\"([^\\"]*)\\"," + // find \'"....",\'
"\\"([^\\"]*)\\"," +
"\\"([^\\"]*)\\"" +
"\\\\)"); // ignore closing \')\'
Matcher m = p.matcher(refactoring);
boolean result = m.find();
if (result)
{
beforeMethodName = m.group(1);
afterMethodName = m.group(2);
}