private string extractRegExpPattern(string text) { return text.Substring(1, text.LastIndexOf('/')-1); }