@Test public void env() throws Exception { Pattern env = RegexUtil.env(); Matcher m1 = env.matcher(" - name: \"menkor_${ACTIVE_PROFILE}.*\""); Assert.assertTrue(m1.find()); String group0 = m1.group(0); String group1 = m1.group(1); Assert.assertEquals("", "${ACTIVE_PROFILE}", group0); Assert.assertEquals("", "ACTIVE_PROFILE", group1); }
public static Pattern env() { return env; }
RegexUtil { public static Pattern env() { return env; } }
RegexUtil { public static Pattern env() { return env; }  }
RegexUtil { public static Pattern env() { return env; }  static Pattern getRegex(String input); static Pattern env(); static boolean isClassName(String consumerId); }
RegexUtil { public static Pattern env() { return env; }  static Pattern getRegex(String input); static Pattern env(); static boolean isClassName(String consumerId);  }