Skip to content

Instantly share code, notes, and snippets.

@jcalvert
Created April 14, 2011 21:46
Show Gist options
  • Save jcalvert/920637 to your computer and use it in GitHub Desktop.
Save jcalvert/920637 to your computer and use it in GitHub Desktop.
Ugh. Doing so little with so much.
public final static String PERCENTAGE_TAGS = "%%";
public final static String OPEN_FLOWER_BRACKET = "{";
public final static String CLOSE_FLOWER_BRACKET = "}";
private static String replaceFlowerBrackets(String strQry) throws Exception {
strQry = strQry.replaceAll(Pattern.quote(OPEN_FLOWER_BRACKET), PERCENTAGE_TAGS);
strQry = strQry.replaceAll(Pattern.quote(CLOSE_FLOWER_BRACKET), PERCENTAGE_TAGS);
return strQry;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment