@Test public void getsFirstExpression() throws Exception { assertThat(getFirstExpression("{{expression}}")).isEqualTo("expression"); assertThat(getFirstExpression("With {{expression}} text")) .isEqualTo("expression"); assertThat(getFirstExpression("Multiple {{expression}} {{expression2}}")) .isEqualTo("expression"); assertThat(getFirstExpression("{{expression}}{{expression2}}")) .isEqualTo("expression"); assertThat(getFirstExpression("No expression")).isNull(); }
public static String getFirstExpression(String text) { Matcher matcher = expressionPattern.matcher(text); return matcher.find() ? matcher.group(1) : null; }
Expressions { public static String getFirstExpression(String text) { Matcher matcher = expressionPattern.matcher(text); return matcher.find() ? matcher.group(1) : null; } }
Expressions { public static String getFirstExpression(String text) { Matcher matcher = expressionPattern.matcher(text); return matcher.find() ? matcher.group(1) : null; }  }
Expressions { public static String getFirstExpression(String text) { Matcher matcher = expressionPattern.matcher(text); return matcher.find() ? matcher.group(1) : null; }  static String getFirstExpression(String text); static boolean hasExpression(String text); static int getExpressionCount(String text); static String extractNameFromRepeater(String repeaterExpression); static String extractExactRepeater(String repeaterExpression); static String extractNameFromNgFor(String ngForExpression); static String replaceIndexBindingWithFunctionParameter(String text,
			int repeaterCount); static String extractControllerAs(String controllerExpression); }
Expressions { public static String getFirstExpression(String text) { Matcher matcher = expressionPattern.matcher(text); return matcher.find() ? matcher.group(1) : null; }  static String getFirstExpression(String text); static boolean hasExpression(String text); static int getExpressionCount(String text); static String extractNameFromRepeater(String repeaterExpression); static String extractExactRepeater(String repeaterExpression); static String extractNameFromNgFor(String ngForExpression); static String replaceIndexBindingWithFunctionParameter(String text,
			int repeaterCount); static String extractControllerAs(String controllerExpression);  }