Expressions { public static int getExpressionCount(String text) { Matcher matcher = expressionPattern.matcher(text); int count = 0; while (matcher.find()) { count++; } return count; }  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);  }
@Test public void getsExpressionCounts() throws Exception { assertThat(getExpressionCount("{{expression}}")).isEqualTo(1); assertThat(getExpressionCount("With {{expression}} text")).isEqualTo(1); assertThat(getExpressionCount("Multiple {{expression}} {{expression2}}")) .isEqualTo(2); assertThat(getExpressionCount("{{expression}}{{expression2}}")) .isEqualTo(2); assertThat(getExpressionCount("No expression")).isEqualTo(0); }